Merge pull request #12098 from hissingshark/master

Fix build error
This commit is contained in:
Henrik Rydgård 2019-06-11 13:57:01 +02:00 committed by GitHub
commit 730fd0616e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ EGLConfig EGL_FindConfig(int *contextVersion) {
// We don't want HDR modes with more than 8 bits per component.
// But let's assume some color is better than no color at all.
auto readConfigMax = [&](EGLint attr, EGLint m, EGLInt def = 1) -> EGLint {
auto readConfigMax = [&](EGLint attr, EGLint m, EGLint def = 1) -> EGLint {
EGLint val = readConfig(attr);
return val > m ? def : val;
};