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 1554 - WGL fails to set OpenGL context flags
Summary: WGL fails to set OpenGL context flags
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Windows (All)
: P2 trivial
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-22 12:56 UTC by Kajetan Swierk
Modified: 2012-07-22 16:38 UTC (History)
0 users

See Also:


Attachments
patch (822 bytes, application/octet-stream)
2012-07-22 12:56 UTC, Kajetan Swierk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kajetan Swierk 2012-07-22 12:56:22 UTC
Created attachment 910 [details]
patch

There's a probable typo in one of the WGL definition concerning context creation - WGL_CONTEXT_FLAGS_ARB gets the same value as WGL_CONTEXT_LAYER_PLANE_ARB and thus it fails to set anything via SDL_GL_SetAttribute with SDL_GL_CONTEXT_FLAGS. X11 doesn't seem to suffer the same condition.
Comment 1 Sam Lantinga 2012-07-22 16:38:18 UTC
Whoops!  Fixed, thanks!
http://hg.libsdl.org/SDL/rev/3990b7d564d7