*/}}
浏览代码

explicitely specify core profile

YimingWu 5 月之前
父节点
当前提交
ec50738663
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;