mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
fixes in EGL platform
This commit is contained in:
@@ -77,6 +77,7 @@ void FrameBuffer::resize(const Size& size)
|
||||
internalRelease();
|
||||
} else {
|
||||
m_screenBackup = TexturePtr(new Texture(size.width(), size.height()));
|
||||
m_screenBackup->setUpsideDown(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -44,6 +44,7 @@
|
||||
typedef char GLchar;
|
||||
|
||||
// define OpenGL ES 2.0 API just to make compile, it wont actually be used
|
||||
inline void glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { }
|
||||
inline void glBindFramebuffer (GLenum target, GLuint framebuffer) { }
|
||||
inline void glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) { }
|
||||
inline void glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) { }
|
||||
|
@@ -359,8 +359,10 @@ bool Graphics::canUseClampToEdge()
|
||||
|
||||
bool Graphics::canUseBlendFuncSeparate()
|
||||
{
|
||||
#ifdef OPENGL_ES
|
||||
#if OPENGL_ES==2
|
||||
return true;
|
||||
#elif OPENGL_ES==1
|
||||
return false;
|
||||
#else
|
||||
if(!GLEW_VERSION_1_4)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user