[WebGL] FBO Depth Buffer Attachment Function Improperly Clearing with 0
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jan 2014 22:43:20 +0000 (22:43 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jan 2014 22:43:20 +0000 (22:43 +0000)
commitf1183ac76a433a3ac30f28dd84e25c899a815a94
treee5f8ab52f375c08d341d4751196ead4668e17ab1
parent52239a45c9b0fece591c305fb92d4cf76844eb5e
[WebGL] FBO Depth Buffer Attachment Function Improperly Clearing with 0
https://bugs.webkit.org/show_bug.cgi?id=126538
<rdar://problem/15201336>

Reviewed by Dean Jackson.

Tested by webgl/1.0.2/resources/webgl_test_files/conformance/renderbuffers/framebuffer-object-attachment.html

* html/canvas/WebGLFramebuffer.cpp:
(WebCore::WebGLFramebuffer::initializeAttachments): Clear depth buffer with 1.0f (rather than 0), to match expected
default (clear) buffer state for OpenGL. Using 0 would require us to flip the clear mask for the depth attachment
type.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/webgl/1.0.2/resources/webgl_test_files/conformance/renderbuffers/framebuffer-object-attachment.html
LayoutTests/webgl/1.0.2/resources/webgl_test_files/conformance/resources/webgl-test-utils.js
Source/WebCore/ChangeLog
Source/WebCore/html/canvas/WebGLFramebuffer.cpp