fixes in EGL platform

This commit is contained in:
Eduardo Bart
2012-06-03 11:10:34 -03:00
parent 3a6f326a8a
commit d49cad31e2
5 changed files with 38 additions and 19 deletions

View File

@@ -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);
}
}

View File

@@ -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) { }

View File

@@ -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;