Index: Source/WebCore/html/canvas/WebGLRenderingContext.cpp |
=================================================================== |
--- Source/WebCore/html/canvas/WebGLRenderingContext.cpp (revision 93076) |
+++ Source/WebCore/html/canvas/WebGLRenderingContext.cpp (working copy) |
@@ -566,9 +566,10 @@ |
{ |
// Until the canvas is written to by the application, the clear that |
// happened after it was composited should be ignored by the compositor. |
- if (m_context->layerComposited() && !m_attributes.preserveDrawingBuffer) |
+ if (m_context->layerComposited() && !m_attributes.preserveDrawingBuffer) { |
+ m_context->paintCompositedResultsToCanvas(this); |
canvas()->makePresentationCopy(); |
- else |
+ } else |
canvas()->clearPresentationCopy(); |
clearIfComposited(); |
if (!m_markedCanvasDirty && !m_layerCleared) |