Changeset 58103 in webkit
- Timestamp:
- Apr 22, 2010 10:04:06 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r58102 r58103 1 2010-04-22 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Dimitri Glazkov. 4 5 Regression: framebufferRenderbuffer crashes with null renderBuffer 6 https://bugs.webkit.org/show_bug.cgi?id=37963 7 8 * fast/canvas/webgl/framebuffer-object-attachment-expected.txt: Adding test cases for null renderbuffer input. 9 * fast/canvas/webgl/framebuffer-object-attachment.html: Ditto. 10 1 11 2010-04-22 Zhenyao Mo <zmo@google.com> 2 12 -
trunk/LayoutTests/fast/canvas/webgl/framebuffer-object-attachment-expected.txt
r57018 r58103 42 42 PASS gl.getError() is gl.NO_ERROR 43 43 PASS gl.getError() is gl.INVALID_OPERATION 44 PASS gl.getError() is gl.NO_ERROR 45 PASS gl.getError() is gl.NO_ERROR 44 46 Attach stencil, then depth, causing conflict 45 47 PASS fbo = gl.createFramebuffer() is non-null. 46 48 PASS gl.getError() is gl.NO_ERROR 47 49 PASS gl.getError() is gl.INVALID_OPERATION 50 PASS gl.getError() is gl.NO_ERROR 51 PASS gl.getError() is gl.NO_ERROR 48 52 Attach depth, then depthStencil, causing conflict 49 53 PASS fbo = gl.createFramebuffer() is non-null. 50 54 PASS gl.getError() is gl.NO_ERROR 51 55 PASS gl.getError() is gl.INVALID_OPERATION 56 PASS gl.getError() is gl.NO_ERROR 57 PASS gl.getError() is gl.NO_ERROR 52 58 Attach depthStencil, then depth, causing conflict 53 59 PASS fbo = gl.createFramebuffer() is non-null. 54 60 PASS gl.getError() is gl.NO_ERROR 55 61 PASS gl.getError() is gl.INVALID_OPERATION 62 PASS gl.getError() is gl.NO_ERROR 63 PASS gl.getError() is gl.NO_ERROR 56 64 Attach stencil, then depthStencil, causing conflict 57 65 PASS fbo = gl.createFramebuffer() is non-null. 58 66 PASS gl.getError() is gl.NO_ERROR 59 67 PASS gl.getError() is gl.INVALID_OPERATION 68 PASS gl.getError() is gl.NO_ERROR 69 PASS gl.getError() is gl.NO_ERROR 60 70 Attach depthStencil, then stencil, causing conflict 61 71 PASS fbo = gl.createFramebuffer() is non-null. 62 72 PASS gl.getError() is gl.NO_ERROR 63 73 PASS gl.getError() is gl.INVALID_OPERATION 74 PASS gl.getError() is gl.NO_ERROR 75 PASS gl.getError() is gl.NO_ERROR 64 76 PASS successfullyParsed is true 65 77 -
trunk/LayoutTests/fast/canvas/webgl/framebuffer-object-attachment.html
r57018 r58103 35 35 gl.framebufferRenderbuffer(gl.FRAMEBUFFER, attachment1, gl.RENDERBUFFER, buffer1); 36 36 shouldBe("gl.getError()", isConflicted ? "gl.INVALID_OPERATION" : "gl.NO_ERROR"); 37 if (isConflicted) { 38 // Detach buffer0 first using a null object, then attaching buffer1 should succeed. 39 gl.framebufferRenderbuffer(gl.FRAMEBUFFER, attachment0, gl.RENDERBUFFER, null); 40 shouldBe("gl.getError()", "gl.NO_ERROR"); 41 gl.framebufferRenderbuffer(gl.FRAMEBUFFER, attachment1, gl.RENDERBUFFER, buffer1); 42 shouldBe("gl.getError()", "gl.NO_ERROR"); 43 } 37 44 } 38 45 -
trunk/WebCore/ChangeLog
r58102 r58103 1 2010-04-22 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Dimitri Glazkov. 4 5 Regression: framebufferRenderbuffer crashes with null renderBuffer 6 https://bugs.webkit.org/show_bug.cgi?id=37963 7 8 * html/canvas/WebGLRenderingContext.cpp: 9 (WebCore::WebGLRenderingContext::framebufferRenderbuffer): Dealing with null renderbuffer input. 10 1 11 2010-04-22 Zhenyao Mo <zmo@google.com> 2 12 -
trunk/WebCore/html/canvas/WebGLRenderingContext.cpp
r58102 r58103 814 814 return; 815 815 } 816 if (buffer ->object()) {816 if (buffer && buffer->object()) { 817 817 bool isConflicted = false; 818 818 bool isDepthOrStencil = true;
Note: See TracChangeset
for help on using the changeset viewer.