We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 67

Summary: switching between fullscreen and windowed mode, 16 bits opengl, fails
Product: SDL Reporter: Gregory Smith <wolfy>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: 1.2.9   
Hardware: x86   
OS: Windows (XP)   
URL: http://treellama.org/sdl16bug.cpp.txt
Attachments: example code

Description Gregory Smith 2006-01-22 18:21:29 UTC
I get an "Unable to make GL context current" error when switching between fullscreen and windowed modes, but only at 16 bit depth--15 and 32 work fine. This happens with DirectX and windib drivers.

There's an example in the URL above.
Comment 1 Gregory Smith 2006-01-22 18:23:31 UTC
Created attachment 28 [details]
example code

Ah, now I can post an attachment
Comment 2 Ryan C. Gordon 2006-01-27 11:23:20 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 3 Sam Lantinga 2006-03-14 02:41:51 UTC
In this case we have to recreate the OpenGL window, and there was code to do this in SDL, but it was disabled because it doesn't work with DirectX.

I've re-enabled this code for the windib driver, which is the default now.