Index: Source/WebCore/html/canvas/WebGLRenderingContext.cpp |
=================================================================== |
--- Source/WebCore/html/canvas/WebGLRenderingContext.cpp (revision 104764) |
+++ Source/WebCore/html/canvas/WebGLRenderingContext.cpp (working copy) |
@@ -5025,7 +5025,8 @@ |
// Construct a new drawing buffer with the new GraphicsContext3D. |
if (m_drawingBuffer) { |
m_drawingBuffer->discardResources(); |
- m_drawingBuffer = DrawingBuffer::create(m_context.get(), m_drawingBuffer->size(), !m_attributes.preserveDrawingBuffer); |
+ m_drawingBuffer = DrawingBuffer::create(context.get(), m_drawingBuffer->size(), !m_attributes.preserveDrawingBuffer); |
+ m_drawingBuffer->bind(); |
} |
m_context = context; |