Changeset 252751 in webkit
- Timestamp:
- Nov 21, 2019 1:47:59 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r252750 r252751 1 2019-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 1 15 2019-11-21 Zalan Bujtas <zalan@apple.com> 2 16 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
r252658 r252751 2473 2473 } 2474 2474 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) { 2477 2478 m_context->framebufferTexture2D(target, GraphicsContext3D::DEPTH_ATTACHMENT, textarget, textureObject, level); 2478 2479 m_context->framebufferTexture2D(target, GraphicsContext3D::STENCIL_ATTACHMENT, textarget, textureObject, level); 2479 break;2480 case GraphicsContext3D::DEPTH_ATTACHMENT: 2480 } else 2481 #endif 2481 2482 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 2489 2484 targetFramebuffer->setAttachmentForBoundFramebuffer(attachment, textarget, texture, level); 2490 2485 applyStencilTest();
Note: See TracChangeset
for help on using the changeset viewer.