Index: Source/core/html/canvas/OESTextureFloat.cpp |
diff --git a/Source/core/html/canvas/OESTextureFloat.cpp b/Source/core/html/canvas/OESTextureFloat.cpp |
index fffed2754513e772a5132bf0e1ec3cb389d71444..38e3d1db40b267e85fc4aaa4e1cfa8bc4a345a53 100644 |
--- a/Source/core/html/canvas/OESTextureFloat.cpp |
+++ b/Source/core/html/canvas/OESTextureFloat.cpp |
@@ -33,7 +33,11 @@ OESTextureFloat::OESTextureFloat(WebGLRenderingContext* context) |
: WebGLExtension(context) |
{ |
ScriptWrappable::init(this); |
- context->graphicsContext3D()->ensureExtensionEnabled("GL_OES_texture_float"); |
+ if (context->graphicsContext3D()->ensureExtensionEnabled("GL_OES_texture_float")) { |
+ // Implicitly enable rendering to float textures |
+ context->graphicsContext3D()->ensureExtensionEnabled("GL_CHROMIUM_color_buffer_float_rgba"); |
+ context->graphicsContext3D()->ensureExtensionEnabled("GL_CHROMIUM_color_buffer_float_rgb"); |
+ } |
} |
OESTextureFloat::~OESTextureFloat() |