Skip to content

Commit

Permalink
[fix] set opengl 3.3 on mali properly
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Aug 1, 2024
1 parent 4de69c6 commit 7b18471
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app_pojavlauncher/src/main/jni/egl_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ int pojavInitOpenGL() {
if (strcmp(renderer, "virgl") == 0 || strcmp(renderer, "virgl_a") == 0) {
solcraft_environ->config_renderer = RENDERER_VIRGL;
setenv("GALLIUM_DRIVER","virpipe",1);
#ifndef ADRENO_POSSIBLE
setenv("MESA_GL_VERSION_OVERRIDE", "3.3", 0);
setenv("MESA_GLSL_VERSION_OVERRIDE", "330", 0);
#endif
if(!checkAdrenoGraphics())
setenv("MESA_GL_VERSION_OVERRIDE", "3.3", 0);
setenv("MESA_GLSL_VERSION_OVERRIDE", "330", 0);
}
setenv("OSMESA_NO_FLUSH_FRONTBUFFER","1",false);
if(strcmp(getenv("OSMESA_NO_FLUSH_FRONTBUFFER"),"1") == 0) {
printf("VirGL: OSMesa buffer flush is DISABLED!\n");
Expand Down

0 comments on commit 7b18471

Please sign in to comment.