mirror of
https://github.com/edubart/otclient.git
synced 2025-12-01 07:36:49 +01:00
fix EGL
This commit is contained in:
@@ -113,6 +113,7 @@ SET(framework_LIBRARIES
|
||||
${GLEW_LIBRARY}
|
||||
${OPENGL_LIBRARIES}
|
||||
${OPENGLES_LIBRARY}
|
||||
${EGL_LIBRARY}
|
||||
${LUA_LIBRARIES}
|
||||
${PHYSFS_LIBRARY}
|
||||
${GMP_LIBRARY}
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
bool isRunning() { return m_running; }
|
||||
bool isStopping() { return m_stopping; }
|
||||
std::string getAppName() { return m_appName; }
|
||||
const std::string& getAppName() { return m_appName; }
|
||||
|
||||
protected:
|
||||
virtual void render();
|
||||
|
||||
@@ -55,8 +55,8 @@ bool Shader::compileSourceCode(const std::string& sourceCode)
|
||||
static const char *qualifierDefines =
|
||||
"#ifndef GL_FRAGMENT_PRECISION_HIGH\n"
|
||||
"#define highp mediump\n"
|
||||
"#endif\n";
|
||||
"precision highp float;\n"
|
||||
"#endif\n"
|
||||
"precision highp float;\n";
|
||||
#endif
|
||||
|
||||
std::string code = qualifierDefines;
|
||||
|
||||
@@ -421,7 +421,7 @@ void X11Window::internalDestroyGLContext()
|
||||
eglDestroyContext(m_eglDisplay, m_eglContext);
|
||||
m_eglContext = 0;
|
||||
}
|
||||
if(m_eglSurface)
|
||||
if(m_eglSurface) {
|
||||
eglDestroySurface(m_eglDisplay, m_eglSurface);
|
||||
m_eglSurface = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user