Skip to content

Commit

Permalink
detect GL_EXT_texture_compression_s3tc explicitly. Intel has compress…
Browse files Browse the repository at this point in the history
…ion but not S3TC, which causes a crash
  • Loading branch information
robn committed Sep 30, 2012
1 parent f67c7fe commit 634fb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/RendererLegacy.cpp
Expand Up @@ -53,7 +53,7 @@ RendererLegacy::RendererLegacy(const Graphics::Settings &vs)
, m_maxZFar(1000000.0f) , m_maxZFar(1000000.0f)
, m_useCompressedTextures(false) , m_useCompressedTextures(false)
{ {
const bool useDXTnTextures = vs.useTextureCompression && glewIsSupported("GL_ARB_texture_compression"); const bool useDXTnTextures = vs.useTextureCompression && glewIsSupported("GL_EXT_texture_compression_s3tc");
m_useCompressedTextures = useDXTnTextures; m_useCompressedTextures = useDXTnTextures;


glShadeModel(GL_SMOOTH); glShadeModel(GL_SMOOTH);
Expand Down

0 comments on commit 634fb14

Please sign in to comment.