Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6a1e957 authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Merge "Fix bytesPerPixel for SurfaceTexture" into nyc-dev

am: 7305edf0

* commit '7305edf0':
  Fix bytesPerPixel for SurfaceTexture
parents ceda51e5 7305edf0
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -28,6 +28,9 @@ namespace uirenderer {


static int bytesPerPixel(GLint glFormat) {
static int bytesPerPixel(GLint glFormat) {
    switch (glFormat) {
    switch (glFormat) {
    // The wrapped-texture case, usually means a SurfaceTexture
    case 0:
        return 0;
    case GL_ALPHA:
    case GL_ALPHA:
        return 1;
        return 1;
    case GL_RGB:
    case GL_RGB: