mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 16:15:34 +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
ec2c64ee15
commit
0f01a6d128
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue