diff options
Diffstat (limited to 'WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp')
-rw-r--r-- | WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp b/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp index a6fa5d9..4215d12 100644 --- a/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp +++ b/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp @@ -76,10 +76,20 @@ bool Extensions3DOpenGL::supports(const String& name) return m_availableExtensions.contains("GL_EXT_framebuffer_blit"); if (name == "GL_ANGLE_framebuffer_multisample") return m_availableExtensions.contains("GL_EXT_framebuffer_multisample"); - + + // If GL_ARB_texture_float is available then we report GL_OES_texture_float and + // GL_OES_texture_half_float as available. + if (name == "GL_OES_texture_float" || name == "GL_OES_texture_half_float") + return m_availableExtensions.contains("GL_ARB_texture_float"); + return m_availableExtensions.contains(name); } +void Extensions3DOpenGL::ensureEnabled(const String& name) +{ + ASSERT_UNUSED(name, supports(name)); +} + int Extensions3DOpenGL::getGraphicsResetStatusARB() { return GraphicsContext3D::NO_ERROR; |