Skip to content
Browse files

Merge pull request #1028 from Memphiz/texturesize

[gles] - query the max texture size from GLES instead of assuming 2048 (...
  • Loading branch information...
2 parents b6759a5 + b77b38f commit 7dea73cf2704537f957c1ac1f93d962a96937d52 @Memphiz Memphiz committed Jun 2, 2012
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;

0 comments on commit 7dea73c

Please sign in to comment.
Something went wrong with that request. Please try again.