Changeset 169654 in webkit


Ignore:
Timestamp:
Jun 6, 2014 11:37:08 AM (10 years ago)
Author:
dino@apple.com
Message:

[iOS WebGL] Float texture extension has a slightly different name
https://bugs.webkit.org/show_bug.cgi?id=133580
<rdar://problem/17113451>

Reviewed by Brady Eidson.

Floating point textures were not available on iOS, because we were
looking for the wrong extension.

Covered by the Khronos test (and in LayoutTests):
conformance/extensions/oes-texture-float.html

  • platform/graphics/opengl/Extensions3DOpenGL.cpp:

(WebCore::Extensions3DOpenGL::supportsExtension): Look for GL_OES_texture_float
as well as GL_ARB_texture_float.

  • platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:

(WebCore::GraphicsContext3D::texImage2D): Increase the set of things skipped
on PLATFORM(IOS) since they are supported natively there.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r169651 r169654  
     12014-06-06  Dean Jackson  <dino@apple.com>
     2
     3        [iOS WebGL] Float texture extension has a slightly different name
     4        https://bugs.webkit.org/show_bug.cgi?id=133580
     5        <rdar://problem/17113451>
     6
     7        Reviewed by Brady Eidson.
     8
     9        Floating point textures were not available on iOS, because we were
     10        looking for the wrong extension.
     11
     12        Covered by the Khronos test (and in LayoutTests):
     13        conformance/extensions/oes-texture-float.html
     14
     15        * platform/graphics/opengl/Extensions3DOpenGL.cpp:
     16        (WebCore::Extensions3DOpenGL::supportsExtension): Look for GL_OES_texture_float
     17        as well as GL_ARB_texture_float.
     18        * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
     19        (WebCore::GraphicsContext3D::texImage2D): Increase the set of things skipped
     20        on PLATFORM(IOS) since they are supported natively there.
     21
    1222014-06-05  David Hyatt  <hyatt@apple.com>
    223
  • trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp

    r168639 r169654  
    178178        return true;
    179179
    180     // If GL_ARB_texture_float is available then we report GL_OES_texture_float,
     180    // If GL_ARB_texture_float or GL_OES_texture_float is available then we report
    181181    // GL_OES_texture_half_float, GL_OES_texture_float_linear and GL_OES_texture_half_float_linear as available.
    182182    if (name == "GL_OES_texture_float" || name == "GL_OES_texture_half_float" || name == "GL_OES_texture_float_linear" || name == "GL_OES_texture_half_float_linear")
    183         return m_availableExtensions.contains("GL_ARB_texture_float");
     183        return m_availableExtensions.contains("GL_ARB_texture_float") || m_availableExtensions.contains("GL_OES_texture_float");
    184184
    185185    // GL_OES_vertex_array_object
  • trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp

    r167520 r169654  
    295295
    296296    GC3Denum openGLInternalFormat = internalformat;
     297#if !PLATFORM(IOS)
    297298    if (type == GL_FLOAT) {
    298299        if (format == GL_RGBA)
     
    301302            openGLInternalFormat = GL_RGB32F_ARB;
    302303    } else if (type == HALF_FLOAT_OES) {
    303 #if !PLATFORM(IOS)
    304304        if (format == GL_RGBA)
    305305            openGLInternalFormat = GL_RGBA16F_ARB;
     
    313313            openGLInternalFormat = GL_LUMINANCE_ALPHA16F_ARB;
    314314        type = GL_HALF_FLOAT_ARB;
    315 #endif
    316     }
     315    }
     316#endif
    317317    texImage2DDirect(target, level, openGLInternalFormat, width, height, border, format, type, pixels);
    318318    return true;
Note: See TracChangeset for help on using the changeset viewer.