Provide environment Setting for OpenGL

- no .drirc needad anymore
This commit is contained in:
jojo61 2019-12-28 10:57:47 +01:00
parent 6ea4f5076b
commit 50299f178f
3 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ const char *glversion = "#version 330 core ";
#ifdef RASPI
const char *glversion = "#version 300 es";
#else
const char *glversion = " ";
const char *glversion = "#version 320 es ";
#endif
#endif

View File

@ -6,7 +6,7 @@ const char *gl_version = "#version 330";
#ifdef RASPI
const char *gl_version = "#version 300 es";
#else
const char *gl_version = " ";
const char *gl_version = "#version 320 es ";
#endif
#endif

View File

@ -1161,6 +1161,7 @@ static void EglInit(void)
EGLContext context;
// create egl context
setenv("MESA_GL_VERSION_OVERRIDE","3.3",0);
make_egl();
GLenum err = glewInit();