Changeset 169467 in webkit


Ignore:
Timestamp:
May 29, 2014 3:10:16 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[iOS WebGL] Fix depth buffer clearing issue.
https://bugs.webkit.org/show_bug.cgi?id=133388

Patch by Alex Christensen <achristensen@webkit.org> on 2014-05-29
Reviewed by Dean Jackson.

No new tests, but this fixes webgl/1.0.1/conformance/canvas/buffer-preserve-test.html.

  • platform/graphics/mac/WebGLLayer.mm:

(-[WebGLLayer display]):

  • platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:

(WebCore::GraphicsContext3D::prepareTexture):
Moved marking the layer as composited from the mac-only prepareTexture to
the end of [WebGLLayer display] which is called by mac and iOS.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r169450 r169467  
     12014-05-29  Alex Christensen  <achristensen@webkit.org>
     2
     3        [iOS WebGL] Fix depth buffer clearing issue.
     4        https://bugs.webkit.org/show_bug.cgi?id=133388
     5
     6        Reviewed by Dean Jackson.
     7
     8        No new tests, but this fixes webgl/1.0.1/conformance/canvas/buffer-preserve-test.html.
     9
     10        * platform/graphics/mac/WebGLLayer.mm:
     11        (-[WebGLLayer display]):
     12        * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
     13        (WebCore::GraphicsContext3D::prepareTexture):
     14        Moved marking the layer as composited from the mac-only prepareTexture to
     15        the end of [WebGLLayer display] which is called by mac and iOS.
     16
    1172014-05-29  Jeremy Jones  <jeremyj@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/mac/WebGLLayer.mm

    r165676 r169467  
    156156    [super display];
    157157#endif
     158    m_context->markLayerComposited();
    158159}
    159160
  • trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp

    r168367 r169467  
    224224        ::glBindFramebufferEXT(GraphicsContext3D::FRAMEBUFFER, m_state.boundFBO);
    225225    ::glFinish();
    226     m_layerComposited = true;
    227226}
    228227
Note: See TracChangeset for help on using the changeset viewer.