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..060b757854ff2481647a844fddf7ae1ff37e2606 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
@@ -4101,8 +4101,8 @@ void WebGLRenderingContextBase::readPixelsHelper(GLint x, |
} |
if (!validateReadPixelsFuncParameters( |
width, height, format, type, pixels, |
- static_cast<long long>(pixels->byteLength() - |
- offsetInBytes.ValueOrDie()))) { |
+ static_cast<long long>( |
+ (pixels->byteLength() - offsetInBytes).ValueOrDie()))) { |
return; |
} |
clearIfComposited(); |