*/}}
YimingWu 3 ヶ月 前
コミット
22e6af8bb8
1 ファイル変更2 行追加2 行削除
  1. 2 2
      la_kernel.c

+ 2 - 2
la_kernel.c

@@ -1077,9 +1077,9 @@ int laGetReadyWith(laInitArguments* ia){
     }
 
     eglBindAPI(EGL_OPENGL_ES_API);
-    static const EGLint ctx_attribs[] = {
+    EGLint ctx_attribs[] = {
         EGL_CONTEXT_CLIENT_VERSION, MAIN.GLESMajor,
-        EGL_CONTEXT_MINOR_VERSION, 2,
+        EGL_CONTEXT_MINOR_VERSION, MAIN.GLESMinor,
         EGL_NONE
     };
     MAIN.glc = eglCreateContext(MAIN.egl_dpy, MAIN.BestFBC, EGL_NO_CONTEXT, ctx_attribs);