From c9b905d235e625c045f30aaf359b45de43c73c75 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Fri, 8 Nov 2013 10:42:48 +0100 Subject: [PATCH] Stronger check for ES support It is not enough to check for EGL, we also need to check that ContextProfileFlags.ES is set. --- Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs b/Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs index e7ea0a09..997e1610 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs @@ -125,7 +125,7 @@ namespace OpenTK.Platform.SDL2 int profile; SDL.GL.GetAttribute(ContextAttribute.CONTEXT_PROFILE_MASK, out profile); - if (egl != 0) + if (egl != 0 && (profile & (int)ContextProfileFlags.ES) != 0) { context_flags |= GraphicsContextFlags.Embedded; }