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

Commit 0d3890a9 authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter Committed by Android (Google) Code Review
Browse files

Merge "EGL: Properly strip out unknown attributes"

parents 644d9438 52de2fda
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -513,11 +513,11 @@ static EGLBoolean stripAttributes(egl_display_ptr dp, const EGLint* attrib_list,
                            found = true;
                        }
                    }
                    if (found && dp->haveExtension("EGL_KHR_gl_colorspace")) {
                        stripped = true;
                    } else {
                    if (found || !dp->haveExtension("EGL_KHR_gl_colorspace")) {
                        stripped_attrib_list.push_back(attr[0]);
                        stripped_attrib_list.push_back(attr[1]);
                    } else {
                        stripped = true;
                    }
                }
                break;