Changeset 139186 in webkit
- Timestamp:
- Jan 9, 2013 5:31:47 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r139184 r139186 1 2013-01-09 Zeno Albisser <zeno@webkit.org> 2 3 [Qt] WebGL content is incomplete when using multiple canvas 4 https://bugs.webkit.org/show_bug.cgi?id=106313 5 6 While we are using double buffering for WebGL, 7 we do not use a drawable that implements a mechanism 8 for swapping buffers. 9 Therefore we have to make sure that all GL commands 10 have been executed properly before copying the texture 11 onto the GraphicsSurface. 12 13 Reviewed by Simon Hausmann. 14 15 * platform/graphics/qt/GraphicsContext3DQt.cpp: 16 (WebCore::GraphicsContext3DPrivate::blitMultisampleFramebufferAndRestoreContext): 17 1 18 2013-01-09 Carlos Garcia Campos <cgarcia@igalia.com> 2 19 -
trunk/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
r138346 r139186 323 323 void GraphicsContext3DPrivate::blitMultisampleFramebufferAndRestoreContext() const 324 324 { 325 if (!m_context->m_attrs.antialias)326 return;327 328 325 const QOpenGLContext* currentContext = QOpenGLContext::currentContext(); 329 326 QSurface* currentSurface = 0; … … 332 329 m_platformContext->makeCurrent(m_surface); 333 330 } 334 blitMultisampleFramebuffer(); 331 332 if (m_context->m_attrs.antialias) 333 blitMultisampleFramebuffer(); 334 335 // While the context is still bound, make sure all the Framebuffer content is in finished state. 336 // This is necessary as we are doing our own double buffering instead of using a drawable that provides swapBuffers. 337 glFinish(); 338 335 339 if (currentContext && currentContext != m_platformContext) 336 340 const_cast<QOpenGLContext*>(currentContext)->makeCurrent(currentSurface);
Note: See TracChangeset
for help on using the changeset viewer.