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

Commit 2a566ecb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[GLUtils] Return the correct pixel format for GL_SRGB8_ALPHA8."

parents 7f4280a2 84bb8e40
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -657,6 +657,7 @@ static int getPixelFormatFromInternalFormat(uint32_t internalFormat) {
    switch (internalFormat) {
    switch (internalFormat) {
        // For sized internal format.
        // For sized internal format.
        case GL_RGBA16F:
        case GL_RGBA16F:
        case GL_SRGB8_ALPHA8:
            return GL_RGBA;
            return GL_RGBA;
        // Base internal formats and pixel formats are still the same, see Table 1 in
        // Base internal formats and pixel formats are still the same, see Table 1 in
        // https://www.khronos.org/registry/OpenGL-Refpages/es3.1/html/glTexImage2D.xhtml
        // https://www.khronos.org/registry/OpenGL-Refpages/es3.1/html/glTexImage2D.xhtml