2 Commits
Author SHA1 Message Date
Jamie Madill 1eb5bd76f1 Clamp ReadPixels calls to unsigned limits in D3D11.
GL allows reads beyond the defined pixel rectangle, although their
resultant values are undefined. D3D11 gives an error when reading
out-of-bounds, hence clamping the area satisfies both APIs.

This fixes a Renderer crash in our ReadPixels out of bounds test,
and also fixes the test to test the correct area of pixels.

BUG=angle:590

Change-Id: I12439c22d53ec6a2d69e1b8cf80f53e9c18e11f7
Reviewed-on: https://chromium-review.googlesource.com/191080
Reviewed-by: Shannon Woods <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-04-11 17:04:25 +00:00
Geoff Lang f11dbdb3b9 Added a read pixels test.
Change-Id: Ia4c5a0290e62e2c312d86fa18ef4e76d782a4a41
Reviewed-on: https://chromium-review.googlesource.com/179357
Reviewed-by: Nicolas Capens <[email protected]>
Commit-Queue: Nicolas Capens <[email protected]>
Tested-by: Nicolas Capens <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2013-12-11 22:04:16 +00:00