I’ve spent some hours, debugging in dual monitor, using the OpenGL Profiler and realize the fact : AGL in fullscreen is broken on Tiger (at least on Geforce4MX).
Simply nothing is rendered.
OpenGL Profiler produces calls of everything, no error from AGL context creation, which were double checked by aglGetError(), just nothing, nada, just black screen.
If i disable the ‘fullscreen’ flags, then it works in a window.
Does someone has experienced such similar problem ?
The AGL Fullscreen sample code seems to work, but not mine.
I had the same problem in another program, i’ve recoded everything using CGL, It was working If I disabled stencil buffering (this other app was using stencil buffering for shadows). - apparently stencil buffering is broken as well …
I even tried
glClearColor(1,1,1,1);
glClear(GL_COLOR_BUFFER_BIT);
aglSwapBuffers(g_pAGLC);
Just black.
[UPDATE]
I’ve converted the application which was using AGL to CGL.
It only works in 16bit mode. when using 32bit display mode, display is black again.
(using CGDisplayBestModeForParameters for searching the display mode).
This is too crazy.