[Chromium] The DrawingBuffer::bind method was incorrectly resetting the
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Nov 2011 21:52:58 +0000 (21:52 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Nov 2011 21:52:58 +0000 (21:52 +0000)
commit6496f1e9423c4debfa761281826eb7b03a7043ad
treef532936a32cb4a1a23882b331e48a171905b34fe
parent69b4c6e1fc5f408cda700752988c53cb4234d009
[Chromium] The DrawingBuffer::bind method was incorrectly resetting the
GL viewport parameters. This was unnecessary, and resulted in the corruption
of the WebGL context's state.
https://bugs.webkit.org/show_bug.cgi?id=73091

Patch by Jeff Timanus <twiz@chromium.org> on 2011-11-25
Reviewed by Stephen White.

Tests: fast/canvas/webgl/webgl-viewport-parameters-preserved.html

Source/WebCore:

* platform/graphics/gpu/DrawingBuffer.cpp:
(WebCore::DrawingBuffer::bind):

LayoutTests:

* fast/canvas/webgl/webgl-viewport-parameters-preserved-expected.txt: Added.
* fast/canvas/webgl/webgl-viewport-parameters-preserved.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/webgl/webgl-viewport-parameters-preserved-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/webgl/webgl-viewport-parameters-preserved.html [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp