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
This commit is contained in:
robertphillips@google.com 2012-05-30 14:46:10 +00:00
parent f3a8d8e0ff
commit d32369e745

View 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;