mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
Bug 589901 - Fix validation typo in readPixels() - r=vladimir, a=blocking-beta5
This commit is contained in:
parent
b8ecdcd363
commit
44f7d1231b
@ -2434,7 +2434,7 @@ WebGLContext::ReadPixels_base(WebGLint x, WebGLint y, WebGLsizei width, WebGLsiz
|
||||
GLsizei subrect_height = subrect_end_y - subrect_y;
|
||||
|
||||
if (subrect_width < 0 || subrect_height < 0 ||
|
||||
subrect_width > width || subrect_height)
|
||||
subrect_width > width || subrect_height > height)
|
||||
return ErrorInvalidOperation("ReadPixels: integer overflow computing clipped rect size");
|
||||
|
||||
// now we know that subrect_width is in the [0..width] interval, and same for heights.
|
||||
|
Loading…
Reference in New Issue
Block a user