From 82db74b17a6d6d2956401096031b54d1d7cd23aa Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 2 Jan 2020 18:55:53 +0100 Subject: [PATCH] Fix profile not being used --- Source/Native/OpenGL/OpenGLContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Native/OpenGL/OpenGLContext.cpp b/Source/Native/OpenGL/OpenGLContext.cpp index 83467abd..ae34a0ed 100644 --- a/Source/Native/OpenGL/OpenGLContext.cpp +++ b/Source/Native/OpenGL/OpenGLContext.cpp @@ -291,7 +291,7 @@ HGLRC OpenGLCreationHelper::CreateContext(HDC hdc, HGLRC share_context) int_attributes.push_back(WGL_CONTEXT_MINOR_VERSION_ARB); int_attributes.push_back(version % 10); int_attributes.push_back(0x9126); // WGL_CONTEXT_PROFILE_MASK_ARB - int_attributes.push_back(0x1); // WGL_CONTEXT_CORE_PROFILE_BIT_ARB + int_attributes.push_back(profile); int_attributes.push_back(0); opengl3_context = wglCreateContextAttribsARB(hdc, share_context, int_attributes.data());