Added knowledge of GL_RED textures to debugGLReadPixels
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 30 May 2012 14:46:10 +0000 (14:46 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 30 May 2012 14:46:10 +0000 (14:46 +0000)
http://codereview.appspot.com/6257070/

git-svn-id: http://skia.googlecode.com/svn/trunk@4071 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/gl/debug/GrGLCreateDebugInterface.cpp

index 685e18d0851d75f8fefec6f3000d210b27270d45..5419bff8d41b2c0367431cce410b431ab81c8341 100644 (file)
@@ -163,6 +163,9 @@ GrGLvoid GR_GL_FUNCTION_TYPE debugGLReadPixels(GrGLint x, GrGLint y,
         case GR_GL_RGB:
             componentsPerPixel = 3;
             break;
+        case GR_GL_RED:
+            componentsPerPixel = 1;
+            break;
         default:
             GrAlwaysAssert(false);
             break;