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 - CMake configuration auto-disables OpenGL ES support on Windows
Summary: CMake configuration auto-disables OpenGL ES support on Windows
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: x86_64 Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
: 3101 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-30 00:13 UTC by Alex Szpakowski
Modified: 2015-08-28 22:11 UTC (History)
2 users (show)

See Also:


Attachments
Adds the if(VIDEO_OPENGLES) section to the if(WINDOWS) block. (468 bytes, patch)
2015-08-21 15:59 UTC, EntranceJew
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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