Merge pull request #5166 from ligfx/eglwarning

EGL: Fix missing-braces warning
This commit is contained in:
Matthew Parlane 2017-03-26 14:52:09 +13:00 committed by GitHub
commit 89de08d649
1 changed files with 2 additions and 2 deletions

View File

@ -50,10 +50,10 @@ void cInterfaceEGL::DetectMode()
EGLint num_configs;
bool supportsGL = false, supportsGLES2 = false, supportsGLES3 = false;
std::array<int, 3> renderable_types = {
std::array<int, 3> renderable_types{{
EGL_OPENGL_BIT, (1 << 6), /* EGL_OPENGL_ES3_BIT_KHR */
EGL_OPENGL_ES2_BIT,
};
}};
for (auto renderable_type : renderable_types)
{