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 3081

Summary: CMake configuration auto-disables OpenGL ES support on Windows
Product: SDL Reporter: Alex Szpakowski <amaranth72>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: EntranceJew, mark
Version: HG 2.0   
Hardware: x86_64   
OS: Windows (All)   
Attachments: Adds the if(VIDEO_OPENGLES) section to the if(WINDOWS) block.

Description Alex Szpakowski 2015-07-30 00:13:10 UTC
When SDL's CMake file is used on Windows, it sets the VIDEO_OPENGLES option to OFF even when ON is requested (which is the default.) As a result, SDL can't use OpenGL ES - including ANGLE - on Windows if it was built using its CMakeLists.txt file, since the necessary codepaths (e.g. all of SDL_windowsopengles.c) aren't compiled in.

When SDL is built using the Visual Studio project provided with SDL's source, the expected defines are enabled and OpenGL ES support works as expected.
Comment 1 EntranceJew 2015-08-21 15:59:28 UTC
Created attachment 2250 [details]
Adds the if(VIDEO_OPENGLES) section to the if(WINDOWS) block.

This patch fixes the issue on Windows 8.1
Comment 2 Alex Szpakowski 2015-08-26 14:11:53 UTC
*** Bug 3101 has been marked as a duplicate of this bug. ***
Comment 3 Alex Szpakowski 2015-08-28 22:11:17 UTC
This is fixed with this commit: https://hg.libsdl.org/SDL/rev/dbcbdc2940ef