mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
one more fix
This commit is contained in:
parent
9e26948f39
commit
63e7fa085a
3 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue