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 2579

Summary: SDL fails to compile on Windows when only EGL+OpenGL ES defined
Product: SDL Reporter: Mark Callow <libsdl.org>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq
Version: 2.0.3   
Hardware: x86_64   
OS: Windows (All)   
Attachments: patch to compile with EGL/ES2 support only
revised patch to compile with EGL/ES2 support only

Description Mark Callow 2014-06-10 09:40:51 UTC
Created attachment 1677 [details]
patch to compile with EGL/ES2 support only

Compiling with SDL_VIDEO_RENDER_OGL=0, SDL_VIDEO_OPENGL=0, SDL_VIDEO_OPENGL_WGL=0, SDL_VIDEO_RENDER_OGL_ES2=1, SDL_VIDEO_OPENGL_ES2=1 and SDL_VIDEO_OPENGL_EGL=1 set in SDL_config_windows.h fails.

A patch is attached. See bug #2570 for reasons you might want to compile this way.
Comment 1 Gabriel Jacobo 2014-06-10 12:55:40 UTC
The patch looks ok but it contains the "esimplementation_preference" which should be removed for this.
Comment 2 Mark Callow 2014-06-11 01:46:48 UTC
(In reply to Gabriel Jacobo from comment #1)
> The patch looks ok but it contains the "esimplementation_preference" which
> should be removed for this.

Yes. Sorry. I thought I'd deleted that from the patch.
Comment 3 Sam Lantinga 2014-06-15 20:24:31 UTC
Can you post an updated patch that doesn't have any extraneous changes?

Thanks!
Comment 4 Mark Callow 2014-06-17 08:02:44 UTC
Created attachment 1685 [details]
revised patch to compile with EGL/ES2 support only

Here it is.
Comment 5 Sam Lantinga 2014-06-22 16:49:45 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/8333acde0b91