Changeset 71291 in webkit
- Timestamp:
- Nov 3, 2010 5:49:21 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r71290 r71291 1 2010-11-03 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Kenneth Russell. 4 5 depthRange should generate INVALID_OPERATION if zNear is greater than zFar 6 https://bugs.webkit.org/show_bug.cgi?id=48676 7 8 * fast/canvas/webgl/webgl-specific-expected.txt: 9 * fast/canvas/webgl/webgl-specific.html: 10 1 11 2010-11-03 Dumitru Daniliuc <dumi@chromium.org> 2 12 -
trunk/LayoutTests/fast/canvas/webgl/webgl-specific-expected.txt
r71282 r71291 19 19 PASS getError was expected value: INVALID_OPERATION : constant color and constant alpha cannot be used together as source and destination factors in the blend function 20 20 PASS getError was expected value: INVALID_OPERATION : constant color and constant alpha cannot be used together as source and destination factors in the blend function 21 PASS getError was expected value: INVALID_OPERATION : depthRange should generate INVALID_OPERATION if zNear is greater than zFar 21 22 PASS getError was expected value: NO_ERROR : stencilMask should generate no error 22 23 PASS getError was expected value: INVALID_OPERATION : a different mask value for front and back facing is illegal -
trunk/LayoutTests/fast/canvas/webgl/webgl-specific.html
r71282 r71291 69 69 "constant color and constant alpha cannot be used together as source and destination factors in the blend function"); 70 70 71 /*72 71 gl.depthRange(20, 10); 73 72 glErrorShouldBe(gl, gl.INVALID_OPERATION, 74 73 "depthRange should generate INVALID_OPERATION if zNear is greater than zFar"); 75 */76 74 77 75 gl.stencilMask(255); -
trunk/WebCore/ChangeLog
r71289 r71291 1 2010-11-03 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Kenneth Russell. 4 5 depthRange should generate INVALID_OPERATION if zNear is greater than zFar 6 https://bugs.webkit.org/show_bug.cgi?id=48676 7 8 * html/canvas/WebGLRenderingContext.cpp: 9 (WebCore::WebGLRenderingContext::depthRange): 10 1 11 2010-11-03 Adrienne Walker <enne@google.com> 2 12 -
trunk/WebCore/html/canvas/WebGLRenderingContext.cpp
r71289 r71291 791 791 if (isContextLost()) 792 792 return; 793 if (zNear > zFar) { 794 m_context->synthesizeGLError(GraphicsContext3D::INVALID_OPERATION); 795 return; 796 } 793 797 m_context->depthRange(zNear, zFar); 794 798 cleanupAfterGraphicsCall(false);
Note: See TracChangeset
for help on using the changeset viewer.