: WebGLExtension(context)
{
ScriptWrappable::init(this);
- context->graphicsContext3D()->ensureExtensionEnabled("GL_CHROMIUM_depth_texture");
+ context->extensionsUtil()->ensureExtensionEnabled("GL_CHROMIUM_depth_texture");
}
WebGLDepthTexture::~WebGLDepthTexture()
bool WebGLDepthTexture::supported(WebGLRenderingContext* context)
{
- GraphicsContext3D* contextSupport = context->graphicsContext3D();
+ Extensions3DUtil* extensionsUtil = context->extensionsUtil();
// Emulating the UNSIGNED_INT_24_8_WEBGL texture internal format in terms
// of two separate texture objects is too difficult, so disable depth
// textures unless a packed depth/stencil format is available.
- if (!contextSupport->supportsExtension("GL_OES_packed_depth_stencil"))
+ if (!extensionsUtil->supportsExtension("GL_OES_packed_depth_stencil"))
return false;
- return contextSupport->supportsExtension("GL_CHROMIUM_depth_texture")
- || contextSupport->supportsExtension("GL_OES_depth_texture")
- || contextSupport->supportsExtension("GL_ARB_depth_texture");
+ return extensionsUtil->supportsExtension("GL_CHROMIUM_depth_texture")
+ || extensionsUtil->supportsExtension("GL_OES_depth_texture")
+ || extensionsUtil->supportsExtension("GL_ARB_depth_texture");
}
const char* WebGLDepthTexture::extensionName()