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

Commit 7dc8d3ca 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

am: e6a1e957

* commit 'e6a1e957':
  Fix bytesPerPixel for SurfaceTexture
parents f3337684 e6a1e957
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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: