Right now I’m trying to make a small library to be used in utility applications with fancy UI and little games.
I’m making it using OpenGL on top of SDL.
On windows there are no problems with resizable window.
I’m just updating viewport and it works fine.
On mac os x it’s broken.
When I resize window, picture is moved in some random way, new space is flickering with garbage and updating viewport do not help at all.
After digging for some time in SDL sources and various OpenGL samples for mac os x,
I’ve found out that after window resize you need to call ‘update’ method on opengl context.
As a quick hack I’ve added:
[ gl_context update];
to setFrame method at src/video/quartz/SDL_QuartzWindow.m:129
and it seems to fix the problem.
Probably it is valid solution.
I’ve heard that 1.2 was frozen… Is there a chance that fixed version will come out,
or should I ship patched libsdl binary with my applications?