Index: Source/core/html/canvas/OESTextureFloat.cpp |
diff --git a/Source/core/html/canvas/OESTextureFloat.cpp b/Source/core/html/canvas/OESTextureFloat.cpp |
index 99d1387376ca3de38af88024da282007297e1ac0..fffed2754513e772a5132bf0e1ec3cb389d71444 100644 |
--- a/Source/core/html/canvas/OESTextureFloat.cpp |
+++ b/Source/core/html/canvas/OESTextureFloat.cpp |
@@ -26,7 +26,6 @@ |
#include "config.h" |
#include "core/html/canvas/OESTextureFloat.h" |
-#include "platform/graphics/Extensions3D.h" |
namespace WebCore { |
@@ -34,7 +33,7 @@ OESTextureFloat::OESTextureFloat(WebGLRenderingContext* context) |
: WebGLExtension(context) |
{ |
ScriptWrappable::init(this); |
- context->graphicsContext3D()->extensions()->ensureEnabled("GL_OES_texture_float"); |
+ context->graphicsContext3D()->ensureExtensionEnabled("GL_OES_texture_float"); |
} |
OESTextureFloat::~OESTextureFloat() |
@@ -53,8 +52,7 @@ PassRefPtr<OESTextureFloat> OESTextureFloat::create(WebGLRenderingContext* conte |
bool OESTextureFloat::supported(WebGLRenderingContext* context) |
{ |
- Extensions3D* extensions = context->graphicsContext3D()->extensions(); |
- return extensions->supports("GL_OES_texture_float"); |
+ return context->graphicsContext3D()->supportsExtension("GL_OES_texture_float"); |
} |
const char* OESTextureFloat::extensionName() |