You are not logged in.
Refer to the old thread entitled "cli version opengl-2d problem" http://forums.desmume.org/viewtopic.php?id=265 for background information.
I have been able to reproduce this bug on Mac OS X 10.6.2 running the latest trunk version. On Windows and Mac OS X, SDL_SetVideoMode will destroy the GL context, which would lead to the error mentioned in the above thread. However, if SDL_SetVideoMode is not invoked at the end of resizeWindow (the solution suggested by the original poster), then the modified GL viewport will be clipped-off by the SDL window when the window is resized. I tried calling initGL after SDL_SetVideoMode to reinitialize the GL context, which removed the error message, but then openglDraw produced garbled image. I am wondering what am I missing here.
Offline