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 1281

Summary: Setting SDL_GL_ACCELERATED_VISUAL is detrimental?
Product: SDL Reporter: Sagittaur <SDL>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: 1.2.14   
Hardware: x86   
OS: Windows (All)   

Description Sagittaur 2011-08-19 06:17:17 UTC
I call this the "red screen" bug because the symptom is a consistently red screen/window, even though the rest of the program (sound, input) seems to continue normally.  It only happens when video card is ATI, not NVIDIA, and it only happens when I set SDL_GL_ACCELERATED_VISUAL = 1.  While the "red screen" is in effect, GL_RENDERER says "GDI Generic" instead of the expected ATI/Radeon (this makes me think I am getting "software rendering"), and GL_RGBA_MODE says false when I'm expecting 32-bit color.  Problem is cured if I don't touch SDL_GL_ACCELERATED_VISUAL and accept whatever is the default.

See also:
(1) http://forums.libsdl.org/viewtopic.php?t=3015&sid=713abbb8bdcace7e667ff533e001b59f
(2) https://bugzilla.icculus.org/show_bug.cgi?id=3526
(3) http://bugzilla.libsdl.org/show_bug.cgi?id=1254

The last comment on reference (2) implies that voluntarily setting SDL_GL_ACCELERATED_VISUAL has an unintentional detrimental effect versus leaving it to default.  I wanted to bring this to attention in case this is a mistake in SDL.  I'm not looking at the SDL source (which is why I'm reporting this), so I can't comment further.
Comment 1 Ryan C. Gordon 2011-08-21 09:05:44 UTC
I think this is a duplicate of Bug #1197.

--ryan.

*** This bug has been marked as a duplicate of bug 1197 ***