diff options
Diffstat (limited to 'xbmc/RenderSystemGL.cpp')
-rw-r--r-- | xbmc/RenderSystemGL.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xbmc/RenderSystemGL.cpp b/xbmc/RenderSystemGL.cpp index 4c0ac85375..18f28be320 100644 --- a/xbmc/RenderSystemGL.cpp +++ b/xbmc/RenderSystemGL.cpp @@ -68,7 +68,7 @@ bool CRenderSystemGL::InitRenderSystem() // Check if we need DPOT m_NeedPower2Texture = true; - if (m_RenderVerdenVersionMajor >= 2 && GLEW_ARB_texture_non_power_of_two) + if (GLEW_ARB_texture_non_power_of_two) m_NeedPower2Texture = false; // Get our driver vendor and renderer @@ -433,4 +433,9 @@ void CRenderSystemGL::SetViewPort(CRect& viewPort) glViewport((GLint) viewPort.x1, (GLint) (m_height - viewPort.y1 - viewPort.Height()), (GLsizei) viewPort.Width(), (GLsizei) viewPort.Height()); } +bool CRenderSystemGL::SupportsCompressedTextures() +{ + return glewIsSupported("GL_EXT_texture_compression_s3tc"); +} + #endif |