fixes in WIN32-EGL

This commit is contained in:
Eduardo Bart
2012-06-10 20:48:53 -03:00
parent 29dadb849e
commit e91f822f62
5 changed files with 47 additions and 58 deletions

View File

@@ -85,6 +85,9 @@ void Graphics::init()
if(m_maxTextureSize == -1 || m_maxTextureSize > maxTextureSize)
m_maxTextureSize = maxTextureSize;
m_alphaBits = 0;
glGetIntegerv(GL_ALPHA_BITS, &m_alphaBits);
selectPainterEngine(m_prefferedPainterEngine);
m_emptyTexture = TexturePtr(new Texture);
}
@@ -360,6 +363,8 @@ bool Graphics::canUseBlendFuncSeparate()
bool Graphics::canCacheBackbuffer()
{
if(!m_alphaBits)
return false;
#if OPENGL_ES==2
return m_cacheBackbuffer;
#elif OPENGL_ES==1

View File

@@ -77,6 +77,7 @@ private:
TexturePtr m_emptyTexture;
int m_maxTextureSize;
int m_alphaBits;
Boolean<true> m_useDrawArrays;
Boolean<true> m_useFBO;
Boolean<false> m_useHardwareBuffers;