| 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 1cb6bc8050b82f73b8e28287c394a1dbe04d9bf8..d72fab0bdb8231345d0227dd0cbac40a9ec6a3d9 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| @@ -779,7 +779,8 @@ bool WebGL2RenderingContextBase::validateTexStorage(const char* functionName, GL
|
| return false;
|
| }
|
|
|
| - if (m_supportedInternalFormatsStorage.find(internalformat) == m_supportedInternalFormatsStorage.end()) {
|
| + if (m_supportedInternalFormatsStorage.find(internalformat) == m_supportedInternalFormatsStorage.end()
|
| + && (functionType == TexStorageType2D && !m_compressedTextureFormats.contains(internalformat))) {
|
| synthesizeGLError(GL_INVALID_ENUM, functionName, "invalid internalformat");
|
| return false;
|
| }
|
|
|