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

Commit 559e0f29 authored by Krzysztof Kosiński's avatar Krzysztof Kosiński Committed by android-build-merger
Browse files

Merge "Do not strip colorspace attribute for RGB888 surfaces." into pi-dev

am: 18d03214

Change-Id: I337a0cf7d9dbbd62c4acbbd71f08f9c91390b53d
parents 5b5f4226 18d03214
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -489,6 +489,9 @@ static EGLBoolean stripAttributes(egl_display_ptr dp, const EGLint* attrib_list,
    bool haveColorSpaceSupport = dp->haveExtension("EGL_KHR_gl_colorspace");
    switch (format) {
        case HAL_PIXEL_FORMAT_RGBA_8888:
        case HAL_PIXEL_FORMAT_RGBX_8888:
        // RGB_888 is never returned by getNativePixelFormat, but is included here for completeness.
        case HAL_PIXEL_FORMAT_RGB_888:
            if (haveColorSpaceSupport) {
                // Spec says:
                //     [fn1] Only OpenGL and OpenGL ES contexts which support sRGB