From 803c575201d7976c6a11cb5f576dbad4189d1b29 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Thu, 14 Nov 2013 08:29:06 +0100 Subject: [PATCH] Corrected core profile selection According to GLX_create_context, the correct flag for a core profile is GLX_CONTEXT_CORE_PROFILE_BIT_ARB. --- Source/OpenTK/Platform/X11/X11GLContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/X11/X11GLContext.cs b/Source/OpenTK/Platform/X11/X11GLContext.cs index df840cd8..143e081f 100644 --- a/Source/OpenTK/Platform/X11/X11GLContext.cs +++ b/Source/OpenTK/Platform/X11/X11GLContext.cs @@ -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; }