Fix bytesPerPixel for SurfaceTexture

Bug: 27158985
Change-Id: I148a86d76314681eb778292dd0eb64503375f328
This commit is contained in:
John Reck
2016-02-12 08:08:29 -08:00
parent 19ff7804b3
commit 623d223193

View File

@@ -28,6 +28,9 @@ namespace uirenderer {
static int bytesPerPixel(GLint glFormat) {
switch (glFormat) {
// The wrapped-texture case, usually means a SurfaceTexture
case 0:
return 0;
case GL_ALPHA:
return 1;
case GL_RGB: