⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 101181 in webkit


Ignore:
Timestamp:
Nov 25, 2011, 1:52:58 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

[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.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r101180 r101181  
     12011-11-25  Jeff Timanus  <twiz@chromium.org>
     2
     3        [Chromium] The DrawingBuffer::bind method was incorrectly resetting the
     4        GL viewport parameters. This was unnecessary, and resulted in the corruption
     5        of the WebGL context's state.
     6        https://bugs.webkit.org/show_bug.cgi?id=73091
     7
     8        Reviewed by Stephen White.
     9
     10        Tests: fast/canvas/webgl/webgl-viewport-parameters-preserved.html
     11
     12        * fast/canvas/webgl/webgl-viewport-parameters-preserved-expected.txt: Added.
     13        * fast/canvas/webgl/webgl-viewport-parameters-preserved.html: Added.
     14
    1152011-11-25  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r101180 r101181  
     12011-11-25  Jeff Timanus  <twiz@chromium.org>
     2
     3        [Chromium] The DrawingBuffer::bind method was incorrectly resetting the
     4        GL viewport parameters. This was unnecessary, and resulted in the corruption
     5        of the WebGL context's state.
     6        https://bugs.webkit.org/show_bug.cgi?id=73091
     7
     8        Reviewed by Stephen White.
     9
     10        Tests: fast/canvas/webgl/webgl-viewport-parameters-preserved.html
     11
     12        * platform/graphics/gpu/DrawingBuffer.cpp:
     13        (WebCore::DrawingBuffer::bind):
     14
    1152011-11-25  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp

    r100032 r101181  
    369369    if (!m_context)
    370370        return;
    371        
     371
    372372    m_context->bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO ? m_multisampleFBO : m_fbo);
    373     m_context->viewport(0, 0, m_size.width(), m_size.height());
    374373}
    375374
Note: See TracChangeset for help on using the changeset viewer.