From 58b473a64c72fdeaff4600cf046a3f7fc8bf38dd Mon Sep 17 00:00:00 2001 From: hissingshark Date: Tue, 11 Jun 2019 12:52:05 +0100 Subject: [PATCH] Fix build error --- SDL/SDLGLGraphicsContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDL/SDLGLGraphicsContext.cpp b/SDL/SDLGLGraphicsContext.cpp index 631c15a93d..1717f61c63 100644 --- a/SDL/SDLGLGraphicsContext.cpp +++ b/SDL/SDLGLGraphicsContext.cpp @@ -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; };