Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[gles] - query the max texture size from GLES instead of assuming 204…

…8 (new ipad has 4096 for example)
  • Loading branch information...
commit b77b38fee8cceb2bd84eb2ebea6511e42d376496 1 parent f6ab0c6
@Memphiz authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 xbmc/rendering/gles/RenderSystemGLES.cpp
View
6 xbmc/rendering/gles/RenderSystemGLES.cpp
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.