Browse Source

sokol_app.h android: fix sapp_gles2() not returning true when sapp_desc.gl_force_gles2 is set

Andre Weissflog 2 years ago
parent
commit
83ec76027a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sokol_app.h

+ 1 - 0
sokol_app.h

@@ -8655,6 +8655,7 @@ _SOKOL_PRIVATE bool _sapp_android_init_egl(void) {
     if (eglInitialize(display, NULL, NULL) == EGL_FALSE) {
         return false;
     }
+    _sapp.gles2_fallback = _sapp.desc.gl_force_gles2;
 
     EGLint alpha_size = _sapp.desc.alpha ? 8 : 0;
     const EGLint cfg_attributes[] = {