Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL ES support on Windows via ANGLE #1202

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

OpenGL ES support on Windows via ANGLE #1202

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.1
Reported for operating system, platform: Windows 7, x86_64

Comments on the original bug report:

On 2013-11-09 09:50:27 +0000, wrote:

TL;DR SDL is giving me a regular desktop context if I ask for OpenGL
ES on Windows.

Long version:

I am using SDL 2.0.1 on Windows in order to create an OpenGL ES
context via the ANGLE Project
(https://code.google.com/p/angleproject/).

I use SDL_GL_SetAttribute with the following settings:

SDL_GL_CONTEXT_EGL, 1
SDL_GL_CONTEXT_PROFILE_MASK, SDL_CONTEXT_PROFILE_ES
SDL_GL_CONTEXT_MAJOR_VERSION, 2
SDL_GL_CONTEXT_MINOR_VERSION, 0

The context is constructed successfully and I use SDL_GL_GetAttribute
to verify that I am getting an OpenGL ES context.

However, when I try to compile a simple ES shader, I get the following error:

ERROR: 0:2: 'precision' : syntax error

This error occurs when you get a regular desktop OpenGL context
instead of an OpenGL ES context. I have verified this by using EGL
directly:

EGL (es2 context) => shader compiles successfully
WGL (desktop context) => ERROR: 0:2: 'precision' : syntax error
SDL (desktop context) => ERROR: 0:2: 'precision' : syntax error
SDL (es2 context) => ERROR: 0:2: 'precision' : syntax error

Does SDL support EGL on Windows? If not, context construction should
fail, or SDL_GL_GetAttribute should not report an EGL+ES context. If
yes, something appears to be broken somewhere.

On 2013-11-09 11:44:35 +0000, Gabriel Jacobo wrote:

Marking as duplicate of # 2088, this is on my to do list.

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

@SDLBugzilla SDLBugzilla added bug duplicate This issue or pull request already exists labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant