Merged default into minor

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2014-08-13 01:50:52 -03:00
4 changed files with 20 additions and 12 deletions
+3
View File
@@ -894,6 +894,9 @@ love::image::ImageData *Canvas::getImageData(love::image::Image *image)
void Canvas::getPixel(unsigned char* pixel_rgba, int x, int y)
{
if (x < 0 || x >= width || y < 0 || y >= width)
throw love::Exception("Attempt to get out-of-range pixel (%d,%d)!", x, y);
resolveMSAA();
// Our texture is attached to 'resolve_fbo' when we use MSAA.