Index: Source/WebCore/html/canvas/WebGLRenderingContext.cpp |
=================================================================== |
--- Source/WebCore/html/canvas/WebGLRenderingContext.cpp (revision 143991) |
+++ Source/WebCore/html/canvas/WebGLRenderingContext.cpp (working copy) |
@@ -2405,9 +2405,10 @@ |
m_webglLoseContext = WebGLLoseContext::create(this); |
return m_webglLoseContext.get(); |
} |
- if (equalIgnoringCase(name, "WEBGL_compressed_texture_s3tc") |
- // FIXME: remove this after a certain grace period. |
- || equalIgnoringCase(name, "WEBKIT_WEBGL_compressed_texture_s3tc")) { |
+ if ((equalIgnoringCase(name, "WEBGL_compressed_texture_s3tc") |
+ // FIXME: remove this after a certain grace period. |
+ || equalIgnoringCase(name, "WEBKIT_WEBGL_compressed_texture_s3tc")) |
+ && WebGLCompressedTextureS3TC::supported(this)) { |
if (!m_webglCompressedTextureS3TC) |
m_webglCompressedTextureS3TC = WebGLCompressedTextureS3TC::create(this); |
return m_webglCompressedTextureS3TC.get(); |