Fix bytesPerPixel for SurfaceTexture
Bug: 27158985 Change-Id: I148a86d76314681eb778292dd0eb64503375f328
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user