Changeset 252751 in webkit


Ignore:
Timestamp:
Nov 21, 2019 1:47:59 PM (4 years ago)
Author:
Justin Fan
Message:

[WebGL] Fix framebufferTexture2D with DEPTH_STENCIL_ATTACHMENT on ANGLE
https://bugs.webkit.org/show_bug.cgi?id=204433

Reviewed by Dean Jackson.

ANGLE expects requests for DEPTH_STENCIL_ATTACHMENT to not be split into two calls, as previous WebGL 1 backend required.

No new tests. Prevents conformance/extensions/webgl-depth-texture.html regression when run with the ANGLE backend.

  • html/canvas/WebGLRenderingContextBase.cpp:

(WebCore::WebGLRenderingContextBase::framebufferTexture2D):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r252750 r252751  
     12019-11-21  Justin Fan  <justin_fan@apple.com>
     2
     3        [WebGL] Fix framebufferTexture2D with DEPTH_STENCIL_ATTACHMENT on ANGLE
     4        https://bugs.webkit.org/show_bug.cgi?id=204433
     5
     6        Reviewed by Dean Jackson.
     7
     8        ANGLE expects requests for DEPTH_STENCIL_ATTACHMENT to not be split into two calls, as previous WebGL 1 backend required.
     9
     10        No new tests. Prevents conformance/extensions/webgl-depth-texture.html regression when run with the ANGLE backend.
     11
     12        * html/canvas/WebGLRenderingContextBase.cpp:
     13        (WebCore::WebGLRenderingContextBase::framebufferTexture2D):
     14
    1152019-11-21  Zalan Bujtas  <zalan@apple.com>
    216
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

    r252658 r252751  
    24732473    }
    24742474    Platform3DObject textureObject = objectOrZero(texture);
    2475     switch (attachment) {
    2476     case GraphicsContext3D::DEPTH_STENCIL_ATTACHMENT:
     2475
     2476#if !USE_ANGLE
     2477    if (attachment == GraphicsContext3D::DEPTH_STENCIL_ATTACHMENT) {
    24772478        m_context->framebufferTexture2D(target, GraphicsContext3D::DEPTH_ATTACHMENT, textarget, textureObject, level);
    24782479        m_context->framebufferTexture2D(target, GraphicsContext3D::STENCIL_ATTACHMENT, textarget, textureObject, level);
    2479         break;
    2480     case GraphicsContext3D::DEPTH_ATTACHMENT:
     2480    } else
     2481#endif
    24812482        m_context->framebufferTexture2D(target, attachment, textarget, textureObject, level);
    2482         break;
    2483     case GraphicsContext3D::STENCIL_ATTACHMENT:
    2484         m_context->framebufferTexture2D(target, attachment, textarget, textureObject, level);
    2485         break;
    2486     default:
    2487         m_context->framebufferTexture2D(target, attachment, textarget, textureObject, level);
    2488     }
     2483
    24892484    targetFramebuffer->setAttachmentForBoundFramebuffer(attachment, textarget, texture, level);
    24902485    applyStencilTest();
Note: See TracChangeset for help on using the changeset viewer.