*/}}
Browse Source

explicitely specify core profile

YimingWu 5 months ago
parent
commit
ec50738663
1 changed files with 1 additions and 1 deletions
  1. 1 1
      la_kernel.c

+ 1 - 1
la_kernel.c

@@ -426,7 +426,7 @@ void la_SetupPxlFormat(HDC hdc, int* nRegularFormat, int* nMSFormat) {
 void la_SetupGLEnviornment(laWindow* window, HWND hwnd, int Sync) {
     GLint Attrib[] = { WGL_CONTEXT_MAJOR_VERSION_ARB, MAIN.GLMajor,
                   WGL_CONTEXT_MINOR_VERSION_ARB, MAIN.GLMinor,
-        WGL_CONTEXT_PROFILE_MASK_ARB,WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
+        WGL_CONTEXT_PROFILE_MASK_ARB,WGL_CONTEXT_CORE_PROFILE_BIT_ARB,
         //WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB, GL_TRUE,
         0 };
     HGLRC hglrc = 0;