Index: Source/platform/graphics/gpu/DrawingBuffer.cpp |
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp |
index 182ba0b004577c248eec139de540030241b2b0e2..f81b268c4c154b8ab258dbaceb1fe1ed59052b42 100644 |
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp |
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp |
@@ -94,11 +94,15 @@ PassRefPtr<DrawingBuffer> DrawingBuffer::create(PassOwnPtr<WebGraphicsContext3D> |
// This might be the first time we notice that the WebGraphicsContext3D is lost. |
return nullptr; |
} |
- bool multisampleSupported = extensionsUtil->supportsExtension("GL_CHROMIUM_framebuffer_multisample") |
+ bool multisampleSupported = (extensionsUtil->supportsExtension("GL_CHROMIUM_framebuffer_multisample") |
+ || extensionsUtil->supportsExtension("GL_EXT_multisampled_render_to_texture")) |
&& extensionsUtil->supportsExtension("GL_OES_rgb8_rgba8"); |
if (multisampleSupported) { |
- extensionsUtil->ensureExtensionEnabled("GL_CHROMIUM_framebuffer_multisample"); |
extensionsUtil->ensureExtensionEnabled("GL_OES_rgb8_rgba8"); |
+ if (extensionsUtil->supportsExtension("GL_CHROMIUM_framebuffer_multisample") |
+ extensionsUtil->ensureExtensionEnabled("GL_CHROMIUM_framebuffer_multisample"); |
+ else |
+ extensionsUtil->ensureExtensionEnabled("GL_EXT_multisampled_render_to_texture"); |
Ken Russell (switch to Gerrit)
2014/11/05 01:36:10
This isn't syntactially correct. Please don't uplo
|
} |
bool packedDepthStencilSupported = extensionsUtil->supportsExtension("GL_OES_packed_depth_stencil"); |
if (packedDepthStencilSupported) |