Fix logic about who flips y in gpu readpixels
git-svn-id: http://skia.googlecode.com/svn/trunk@2620 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrGpuGL.cpp b/src/gpu/GrGpuGL.cpp
index 016b110..9697a4e 100644
--- a/src/gpu/GrGpuGL.cpp
+++ b/src/gpu/GrGpuGL.cpp
@@ -1517,8 +1517,8 @@
} else {
// On ES we'll have to do memcpys to handle rowByte padding. So, we
// might as well flipY while we're at it.
- return 0 != rowBytes &&
- GrBytesPerPixel(config) * width != rowBytes;
+ return 0 == rowBytes ||
+ GrBytesPerPixel(config) * width == rowBytes;
}
}