Skip to content

Commit

Permalink
[gles] - query the max texture size from GLES instead of assuming 204…
Browse files Browse the repository at this point in the history
…8 (new ipad has 4096 for example)
  • Loading branch information
Memphiz committed May 29, 2012
1 parent f6ab0c6 commit b77b38f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xbmc/rendering/gles/RenderSystemGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@ CRenderSystemGLES::~CRenderSystemGLES()

bool CRenderSystemGLES::InitRenderSystem()
{
GLint maxTextureSize;

glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize);

m_maxTextureSize = maxTextureSize;
m_bVSync = false;
m_iVSyncMode = 0;
m_iSwapStamp = 0;
m_iSwapTime = 0;
m_iSwapRate = 0;
m_bVsyncInit = false;
m_maxTextureSize = 2048;
m_renderCaps = 0;
// Get the GLES version number
m_RenderVersionMajor = 0;
Expand Down

0 comments on commit b77b38f

Please sign in to comment.