aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeenje <beenje@svn>2009-11-21 20:29:07 +0000
committerbeenje <beenje@svn>2009-11-21 20:29:07 +0000
commit58787044152bc7bbd696db0f7a36ac6ae2ab6874 (patch)
tree16e137b32ca5587039f38366fad292872de8e4ea
parente29a8089b4454502f4afcc13d62f217ac4e52d76 (diff)
fixed: Ticket #7724 - Force max texture size to a lower value on mac with ATI Radeon X1600 or ATI Radeon 9200 to avoid picture rendering problem. Probably a driver bug. Thanks to elupus and jmarshall for helping me debugging.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@24846 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--xbmc/RenderSystemGL.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/xbmc/RenderSystemGL.cpp b/xbmc/RenderSystemGL.cpp
index 5c60df2c23..5a8c0e4d40 100644
--- a/xbmc/RenderSystemGL.cpp
+++ b/xbmc/RenderSystemGL.cpp
@@ -427,6 +427,20 @@ void CRenderSystemGL::CalculateMaxTexturesize()
break;
}
}
+
+#ifdef __APPLE__
+ // Max Texture size reported on some apple machines seems incorrect
+ // Displaying a picture with that resolution results in a corrupted output
+ // So force it to a lower value
+ // Problem noticed on:
+ // iMac with ATI Radeon X1600, both on 10.5.8 (GL_VERSION: 2.0 ATI-1.5.48)
+ // and 10.6.2 (GL_VERSION: 2.0 ATI-1.6.6)
+ if (strcmp(m_RenderRenderer, "ATI Radeon X1600 OpenGL Engine") == 0)
+ m_maxTextureSize = 2048;
+ // Mac mini G4 with ATI Radeon 9200 (GL_VERSION: 1.3 ATI-1.5.48)
+ else if (strcmp(m_RenderRenderer, "ATI Radeon 9200 OpenGL Engine") == 0)
+ m_maxTextureSize = 1024;
+#endif
CLog::Log(LOGINFO, "GL: Maximum texture width: %u", m_maxTextureSize);
}