resizable opengl window on mac os x |
resizable opengl window on mac os x |
John Magnotti
Guest
|
My info on this may be out of date, but...
I think standard practice is to have a resize handler that calls necessary functions to reset glContext (including rebuilding textures). From what I understand it's not a bug, just a side effect of the GL context being trashed after a window resize. John On Thu, Oct 7, 2010 at 11:21 PM, Xecutor wrote:
|
|||||||||||||
|
resizable opengl window on mac os x |
Ian Mallett
Guest
|
On Sun, Oct 10, 2010 at 4:17 PM, John Magnotti wrote:
I've always been annoyed by this. Are there plans to fix it in future versions of SDL? Ian #avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;} |
|||||||||||||
|
resizable opengl window on mac os x |
Vittorio G.
Guest
|
Umh, would this guide be helpful?
http://www.gamedev.net/community/forums/topic.asp?topic_id=428022 Vittorio On Mon, Oct 11, 2010 at 12:43 AM, Ian Mallett wrote:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||
|
Xecutor
|
Why would resizing window ruing opengl context?
It is not. As I said earlier, with glcontext update it works just fine. And it works just fine without any fixes on windows and linux. I'm not calling setvideomode after resize. There is no need to do this. The link is about generic sdl functions. Not about opengl. |
|||||||||||
|
Xecutor
|
Here is quote from apple's documentation:
SDL creates context manually, so it MUST call update! |
|||||||||||||
|
VernJensen
|
Xecutor -- any idea how to fix this same problem in SDL 1.3? (The source code is quite different, and I can't find where to do an OpenGL context update.)
|
|||||||||||
|
resizable opengl window on mac os x |
Ian Mallett
Guest
|
On Mon, Oct 11, 2010 at 11:10 PM, Xecutor wrote:
The fact remains that problems can, and often do occur. I have experienced this effect first hand, where the color channels of textures get changed or deleted, and display lists throw vertex garbage. There's a possibility you won't get such problems, but assuming they won't happen is just wrong. Some things that should remain valid are the viewport coordinates, the context's state (enable/disable). Bound objects might stay valid too, but I'd have to check. So, reinitializing your renderer is not necessary. Reloading your content is. I've experienced these problems on all three major platforms.
#avg_ls_inline_popup{position: absolute;z-index: 9999;padding: 0px 0px;margin-left: 0px;margin-top: 0px;overflow: hidden;word-wrap: break-word;color: black;font-size: 10px;text-align: left;line-height: 130%;} |
|||||||||||||||
|