commit | d32369e745d760f76a18dbd027ece4a97f28b4d5 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 30 14:46:10 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 30 14:46:10 2012 +0000 |
tree | 415e44773c21eb0057efaeb6e91c6a48f33739bf | |
parent | f3a8d8e0ff34eae8c300268af17789cb3c275ca5 [diff] [blame] |
Added knowledge of GL_RED textures to debugGLReadPixels http://codereview.appspot.com/6257070/ git-svn-id: http://skia.googlecode.com/svn/trunk@4071 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp index 685e18d..5419bff 100644 --- a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp +++ b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
@@ -163,6 +163,9 @@ case GR_GL_RGB: componentsPerPixel = 3; break; + case GR_GL_RED: + componentsPerPixel = 1; + break; default: GrAlwaysAssert(false); break;