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

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

Issue 15876011: Make WebGL extensions get lost when context is lost. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/OESTextureHalfFloat.cpp
diff --git a/Source/core/html/canvas/OESTextureHalfFloat.cpp b/Source/core/html/canvas/OESTextureHalfFloat.cpp
index 1d00ea8b038194c6fee9bfc8467d0477b466907c..1542bfcfab942ad9ccfef5af8b81e83a28171d8b 100644
--- a/Source/core/html/canvas/OESTextureHalfFloat.cpp
+++ b/Source/core/html/canvas/OESTextureHalfFloat.cpp
@@ -34,13 +34,17 @@ OESTextureHalfFloat::OESTextureHalfFloat(WebGLRenderingContext* context)
: WebGLExtension(context)
{
ScriptWrappable::init(this);
Ken Russell (switch to Gerrit) 2013/06/05 00:46:38 Missing call to enable()?
- context->graphicsContext3D()->getExtensions()->ensureEnabled("GL_OES_texture_half_float");
}
OESTextureHalfFloat::~OESTextureHalfFloat()
{
}
+void OESTextureHalfFloat::enable()
+{
+ m_context->graphicsContext3D()->getExtensions()->ensureEnabled("GL_OES_texture_half_float");
+}
+
WebGLExtension::ExtensionName OESTextureHalfFloat::getName() const
{
return OESTextureHalfFloatName;

Powered by Google App Engine
This is Rietveld 408576698