| Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
| diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
| index c042e9733c01fc3c39b51f5bc61044aca0247b66..96b70a416bcb5cdfec829432ca06ccceca549602 100644
|
| --- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
| +++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
| @@ -1011,9 +1011,6 @@ void WebGLRenderingContextBase::reshape(int width, int height)
|
| // This is an approximation because at WebGLRenderingContextBase level we don't
|
| // know if the underlying FBO uses textures or renderbuffers.
|
| GLint maxSize = std::min(m_maxTextureSize, m_maxRenderbufferSize);
|
| - // Limit drawing buffer size to 4k to avoid memory exhaustion.
|
| - const int sizeUpperLimit = 4096;
|
| - maxSize = std::min(maxSize, sizeUpperLimit);
|
| GLint maxWidth = std::min(maxSize, m_maxViewportDims[0]);
|
| GLint maxHeight = std::min(maxSize, m_maxViewportDims[1]);
|
| width = clamp(width, 1, maxWidth);
|
|
|