Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Unified Diff: Source/core/html/canvas/OESTextureFloat.cpp

Issue 150083005: Use GL_chromium_color_buffer_float extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.h » ('j') | Source/core/html/canvas/WebGLRenderingContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698