diff options
author | elupus <elupus@svn> | 2009-12-20 13:24:22 +0000 |
---|---|---|
committer | elupus <elupus@svn> | 2009-12-20 13:24:22 +0000 |
commit | 645ae4c01f46c8d8498619d312b546bec6ed6e13 (patch) | |
tree | 00a6024c74523814935f92a3b27d1f0da5ca9dd4 | |
parent | e07aa3c2dca6480bbfb94d5069cca3f955d51558 (diff) |
changed: only use NPOT texture's if driver advertises it, don't assume it works by checking render version.
Seems alot of 2.0 drivers revert to software rendering when NPOT textures are used. They don't advertise the support thou. This fixes #7546
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25875 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/RenderSystemGL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/RenderSystemGL.cpp b/xbmc/RenderSystemGL.cpp index 60d7844ad6..865fc5df64 100644 --- a/xbmc/RenderSystemGL.cpp +++ b/xbmc/RenderSystemGL.cpp @@ -81,7 +81,7 @@ bool CRenderSystemGL::InitRenderSystem() if (glewIsSupported("GL_EXT_texture_compression_s3tc")) m_renderCaps |= RENDER_CAPS_DXT; - if (GLEW_ARB_texture_non_power_of_two || m_RenderVersionMajor >= 2) + if (glewIsSupported("GL_ARB_texture_non_power_of_two")) { m_renderCaps |= RENDER_CAPS_NPOT; if (m_renderCaps & RENDER_CAPS_DXT && !g_sysinfo.IsAppleTV()) // This may not be correct on all hardware, Apple Tv(Nvidia 7300) having problems with this |