*/}}
YimingWu hai 3 meses
pai
achega
22e6af8bb8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);