Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
| index 95af46d616493bafc19152481b5640fa7c76684a..ba3ec722328b5deba8ace916cff80e47fbb72d40 100644 |
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
| @@ -4101,8 +4101,7 @@ void WebGLRenderingContextBase::readPixelsHelper(GLint x, |
| } |
| if (!validateReadPixelsFuncParameters( |
| width, height, format, type, pixels, |
| - static_cast<long long>(pixels->byteLength() - |
| - offsetInBytes.ValueOrDie()))) { |
| + (pixels->byteLength() - offsetInBytes).ValueOrDie())) { |
|
Ken Russell (switch to Gerrit)
2016/11/30 21:50:17
We should change this code so that if the temporar
|
| return; |
| } |
| clearIfComposited(); |