Corrected core profile selection

According to GLX_create_context, the correct flag for a core profile is
GLX_CONTEXT_CORE_PROFILE_BIT_ARB.
This commit is contained in:
Stefanos A. 2013-11-14 08:29:06 +01:00
parent f142dbdfc3
commit 803c575201

View file

@ -227,7 +227,7 @@ namespace OpenTK.Platform.X11
{
ArbCreateContext result = 0;
result |= (flags & GraphicsContextFlags.ForwardCompatible) != 0 ?
ArbCreateContext.ForwardCompatibleBit : ArbCreateContext.CompatibilityProfileBit;
ArbCreateContext.CoreProfileBit : ArbCreateContext.CompatibilityProfileBit;
return result;
}