https://bugs.webkit.org/show_bug.cgi?id=104659
When drawing a texture to the TextureMapper the flag SupportsBlending
must be passed in order to allow for transparent webgl content.
We are doing this for GLX already, but the flag was still missing
in GraphicsSurfaceMac.
Reviewed by Kenneth Rohde Christiansen.
* platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp:
(WebCore::GraphicsSurface::platformPaintToTextureMapper):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137298
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-12-11 Zeno Albisser <zeno@webkit.org>
+
+ [Qt][Mac] Fix transparency for WebGL content.
+ https://bugs.webkit.org/show_bug.cgi?id=104659
+
+ When drawing a texture to the TextureMapper the flag SupportsBlending
+ must be passed in order to allow for transparent webgl content.
+ We are doing this for GLX already, but the flag was still missing
+ in GraphicsSurfaceMac.
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ * platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp:
+ (WebCore::GraphicsSurface::platformPaintToTextureMapper):
+
2012-12-11 Alexander Pavlov <apavlov@chromium.org>
Web Inspector: Duplicate emulated touch events in iframe
{
TransformationMatrix adjustedTransform = transform;
adjustedTransform.multiply(TransformationMatrix::rectToRect(FloatRect(FloatPoint::zero(), m_private->size()), targetRect));
- static_cast<TextureMapperGL*>(textureMapper)->drawTextureRectangleARB(m_private->frontBufferTextureID(), 0, m_private->size(), targetRect, adjustedTransform, opacity, mask);
+ static_cast<TextureMapperGL*>(textureMapper)->drawTextureRectangleARB(m_private->frontBufferTextureID(), TextureMapperGL::SupportsBlending, m_private->size(), targetRect, adjustedTransform, opacity, mask);
}
uint32_t GraphicsSurface::platformFrontBuffer() const