Changeset 148680 in webkit


Ignore:
Timestamp:
Apr 18, 2013 9:14:58 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Improper initialization of ANGLEResources (resubmission)
https://bugs.webkit.org/show_bug.cgi?id=114814

Patch by Jonathan Feldstein <jfeldstein@blackberry.com> on 2013-04-18
Reviewed by Yong Li, Rob Buis
Internally reviewed by Maxim Mogilnitsky

MaxDrawBuffers, OES_standard_derivatives, OES_EGL_image_external and ARB_texture_rectangle
are initialized through the ShBuiltInResources function so these fields do not need to be
set again in GraphicsContext3DBlackBerry.cpp. In addition, the extension flags should not
be set to true without getExtension being called (Khronos WebGL specs, section 5.14.14.).
In fact, as a direct result of these extensions being enabled prior to calling
getExtension, a WebGL conformance suite test for GL_OES_standard_derivatives was failing.

  • platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:

(WebCore::GraphicsContext3D::GraphicsContext3D):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148678 r148680  
     12013-04-18  Jonathan Feldstein  <jfeldstein@blackberry.com>
     2
     3        [BlackBerry] Improper initialization of ANGLEResources (resubmission)
     4        https://bugs.webkit.org/show_bug.cgi?id=114814
     5
     6        Reviewed by Yong Li, Rob Buis
     7        Internally reviewed by Maxim Mogilnitsky
     8
     9        MaxDrawBuffers, OES_standard_derivatives, OES_EGL_image_external and ARB_texture_rectangle
     10        are initialized through the ShBuiltInResources function so these fields do not need to be
     11        set again in GraphicsContext3DBlackBerry.cpp. In addition, the extension flags should not
     12        be set to true without getExtension being called (Khronos WebGL specs, section 5.14.14.).
     13        In fact, as a direct result of these extensions being enabled prior to calling
     14        getExtension, a WebGL conformance suite test for GL_OES_standard_derivatives was failing.
     15
     16        * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
     17        (WebCore::GraphicsContext3D::GraphicsContext3D):
     18
    1192013-04-18  Xuefei Ren  <xren@blackberry.com>
    220
  • trunk/Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp

    r148595 r148680  
    109109    getIntegerv(GraphicsContext3D::MAX_FRAGMENT_UNIFORM_VECTORS, &ANGLEResources.MaxFragmentUniformVectors);
    110110
    111     Extensions3D* extensions = getExtensions();
    112     ANGLEResources.MaxDrawBuffers = 1; // Always set to 1 for OpenGL ES.
    113     ANGLEResources.OES_standard_derivatives = extensions->supports("GL_OES_standard_derivatives");
    114     ANGLEResources.OES_EGL_image_external = extensions->supports("GL_EGL_image_external");
    115     ANGLEResources.ARB_texture_rectangle = extensions->supports("GL_ARB_texture_rectangle");
    116 
    117111    GC3Dint range[2], precision;
    118112    getShaderPrecisionFormat(GraphicsContext3D::FRAGMENT_SHADER, GraphicsContext3D::HIGH_FLOAT, range, &precision);
Note: See TracChangeset for help on using the changeset viewer.