mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 02:05:28 +00:00
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:
parent
2cd91bd0a0
commit
c9b905d235
|
@ -125,7 +125,7 @@ namespace OpenTK.Platform.SDL2
|
||||||
int profile;
|
int profile;
|
||||||
SDL.GL.GetAttribute(ContextAttribute.CONTEXT_PROFILE_MASK, out 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;
|
context_flags |= GraphicsContextFlags.Embedded;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue