one more fix

This commit is contained in:
tildearrow 2024-04-07 05:05:51 -05:00
parent 9e26948f39
commit 63e7fa085a
3 changed files with 7 additions and 2 deletions

View file

@ -86,9 +86,14 @@ enum FurnaceGUIRenderBackend {
#define GUI_BACKEND_DEFAULT GUI_BACKEND_GL1
#define GUI_BACKEND_DEFAULT_NAME "OpenGL 1.1"
#else
#ifdef USE_GLES
#define GUI_BACKEND_DEFAULT GUI_BACKEND_GL3
#define GUI_BACKEND_DEFAULT_NAME "OpenGL ES 2.0"
#else
#define GUI_BACKEND_DEFAULT GUI_BACKEND_GL3
#define GUI_BACKEND_DEFAULT_NAME "OpenGL 3.0"
#endif
#endif
#else
#ifdef HAVE_RENDER_SDL
#define GUI_BACKEND_DEFAULT GUI_BACKEND_SDL

View file

@ -60,7 +60,7 @@ bool FurnaceGUI::initRender() {
case GUI_BACKEND_GL2:
logI("render backend: OpenGL ES 2.0");
rend=new FurnaceGUIRenderGL;
((FurnaceGUIRenderGL*)rend)->setVersion(2);
((FurnaceGUIRenderGL*)rend)->setVersion(3);
break;
#else
case GUI_BACKEND_GL3:

View file

@ -725,4 +725,4 @@ bool FurnaceGUIRenderGL::isDead() {
void FurnaceGUIRenderGL::setVersion(unsigned char ver) {
glVer=ver;
}
}