Changeset 142545 in webkit


Ignore:
Timestamp:
Feb 11, 2013 4:31:15 PM (11 years ago)
Author:
zmo@google.com
Message:

WEBGL_compressed_texture_s3tc extension can be enabled even when not supported
https://bugs.webkit.org/show_bug.cgi?id=109508

Reviewed by Kenneth Russell.

  • html/canvas/WebGLRenderingContext.cpp:

(WebCore):
(WebCore::WebGLRenderingContext::getExtension): Check whether the extension support is there before returning the extension pointer.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r142539 r142545  
     12013-02-11  Zhenyao Mo  <zmo@google.com>
     2
     3        WEBGL_compressed_texture_s3tc extension can be enabled even when not supported
     4        https://bugs.webkit.org/show_bug.cgi?id=109508
     5
     6        Reviewed by Kenneth Russell.
     7
     8        * html/canvas/WebGLRenderingContext.cpp:
     9        (WebCore):
     10        (WebCore::WebGLRenderingContext::getExtension): Check whether the extension support is there before returning the extension pointer.
     11
    1122013-02-11  Emil A Eklund  <eae@chromium.org>
    213
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp

    r141922 r142545  
    24062406        return m_webglLoseContext.get();
    24072407    }
    2408     if (equalIgnoringCase(name, "WEBGL_compressed_texture_s3tc")
    2409         // FIXME: remove this after a certain grace period.
    2410         || equalIgnoringCase(name, "WEBKIT_WEBGL_compressed_texture_s3tc")) {
     2408    if ((equalIgnoringCase(name, "WEBGL_compressed_texture_s3tc")
     2409         // FIXME: remove this after a certain grace period.
     2410         || equalIgnoringCase(name, "WEBKIT_WEBGL_compressed_texture_s3tc"))
     2411        && WebGLCompressedTextureS3TC::supported(this)) {
    24112412        if (!m_webglCompressedTextureS3TC)
    24122413            m_webglCompressedTextureS3TC = WebGLCompressedTextureS3TC::create(this);
Note: See TracChangeset for help on using the changeset viewer.