Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
index aeac2e6de194fc722e9b8aea8d23725784bf2710..3d04ecf6f55805db757caba6b23430516db667ad 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
@@ -94,9 +94,6 @@ |
GL_DEPTH_COMPONENT32F, |
GL_DEPTH24_STENCIL8, |
GL_DEPTH32F_STENCIL8, |
-}; |
- |
-const GLenum kCompressedTextureFormatsETC2EAC[] = { |
GL_COMPRESSED_R11_EAC, |
GL_COMPRESSED_SIGNED_R11_EAC, |
GL_COMPRESSED_RG11_EAC, |
@@ -113,8 +110,6 @@ |
: WebGLRenderingContextBase(passedCanvas, context, requestedAttributes) |
{ |
m_supportedInternalFormatsStorage.insert(kSupportedInternalFormatsStorage, kSupportedInternalFormatsStorage + arraysize(kSupportedInternalFormatsStorage)); |
- m_supportedInternalFormatsStorage.insert(kCompressedTextureFormatsETC2EAC, kCompressedTextureFormatsETC2EAC + arraysize(kCompressedTextureFormatsETC2EAC)); |
- m_compressedTextureFormatsETC2EAC.insert(kCompressedTextureFormatsETC2EAC, kCompressedTextureFormatsETC2EAC + arraysize(kCompressedTextureFormatsETC2EAC)); |
} |
WebGL2RenderingContextBase::~WebGL2RenderingContextBase() |
@@ -589,11 +584,6 @@ |
WebGLTexture* tex = validateTextureBinding(functionName, target, false); |
if (!tex) |
return false; |
- |
- if (functionType == TexStorageType3D && target != GL_TEXTURE_2D_ARRAY && m_compressedTextureFormatsETC2EAC.find(internalformat) != m_compressedTextureFormatsETC2EAC.end()) { |
- synthesizeGLError(GL_INVALID_OPERATION, functionName, "target for ETC2/EAC internal formats must be TEXTURE_2D_ARRAY"); |
- return false; |
- } |
if (m_supportedInternalFormatsStorage.find(internalformat) == m_supportedInternalFormatsStorage.end()) { |
synthesizeGLError(GL_INVALID_ENUM, functionName, "invalid internalformat"); |