(05-25-2009, 07:37 PM)Zeydlitz Wrote: [ -> ]Well, on linux it's compatible with 0.9.4 (I sometimes check Ethernal Poison, that playable only on such old rev). I think, that this bus error COULD be a unaligned access to memory. But without knowledge what function cause it, I out of ideas.
Yes, most of the time it is, mac is very sensitive to data alignment, all gl functions expect stack to be aligned to 16 bytes before calls.
Quote:Error before swap has following meaning: in ZZoglCRTC we check glstate before swap buffwers (we draw picture on backbuffer and swap it each frame to made a picture clear). If there error before, than CRTC part (when buffer is complete) have bug. Maybe it is interlacing issue. As you know, I change shaders file, and redone interlacing part. So my shaders could have issues on mac.
Debugging it some more it actually breaks in AlphaTest() leading to error in gleLLVMLoadDataFromAryFloatInFloat
Quote:p.S. Xlib: extension "XFree86-VidModeExtension" missing on display "/tmp/launch-nFuQ2X/:0" -- is this expected?
yes, it's expected
ah, ok, fixed it. Copied from my previous notes the wrong way, on mac all the EXT functions don't work so SET_STREAM should look
#define SET_STREAM() { \
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(VertexGPU), (void*)8); \
glSecondaryColorPointer(3, GL_UNSIGNED_BYTE, sizeof(VertexGPU), (void*)12); \
glTexCoordPointer(3, GL_FLOAT, sizeof(VertexGPU), (void*)16); \
glVertexPointer(4, GL_SHORT, sizeof(VertexGPU), (void*)0); \
}
like this, and originally it was
#define SET_STREAM() { \
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(VertexGPU), (void*)8); \
glSecondaryColorPointerEXT(4, GL_UNSIGNED_BYTE, sizeof(VertexGPU), (void*)12); \
glTexCoordPointer(3, GL_FLOAT, sizeof(VertexGPU), (void*)16); \
glVertexPointer(4, GL_SHORT, sizeof(VertexGPU), (void*)0); \
}
So forgot to change 4 to 3
![Wink Wink](https://forums.pcsx2.net/smilies/wink.gif)