Skip to content

Commit

Permalink
[SCL 3.21.2] Use OpenGL 3.3 for virgl for non-Adreno SoCs
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Apr 18, 2024
1 parent 1416dc8 commit 52e7f61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app_pojavlauncher/src/main/jni/egl_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ int pojavInitOpenGL() {
if (strncmp("virgl", renderer, 15) == 0) {
pojav_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
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 52e7f61

Please sign in to comment.