You are not logged in.

Read the FAQ and Knowledge Base before posting.
WiFi not emulated and not supported!!
We won't make a 3DS/2DS emulator.

#1 2010-09-26 19:47:34

Registered: 2009-01-07
Posts: 42

Attempting to fix the CLI version's opengl-2d renderer

Refer to the old thread entitled "cli version opengl-2d problem" 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.


Board footer

Powered by FluxBB