Stronger check for ES support

It is not enough to check for EGL, we also need to check that
ContextProfileFlags.ES is set.
This commit is contained in:
Stefanos A 2013-11-08 10:42:48 +01:00
parent ec2c64ee15
commit 0f01a6d128

View file

@ -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;
}