mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
fixes in WIN32-EGL
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user