Add curly braces

From upstream: 9486ec0c02.

The upstream commit mainly changes some cmake stuff, which we don't use and only really adds curly braces to `egl_context.c` (and changes some formatting).
This commit is contained in:
Luflosi 2019-12-11 22:23:54 +01:00
parent 5bc7cfaa43
commit ba201c4c92
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

7
glfw/egl_context.c vendored
View File

@ -123,6 +123,7 @@ static bool chooseEGLConfig(const _GLFWctxconfig* ctxconfig,
continue;
#if defined(_GLFW_X11)
{
XVisualInfo vi = {0};
// Only consider EGLConfigs with associated Visuals
@ -133,15 +134,15 @@ static bool chooseEGLConfig(const _GLFWctxconfig* ctxconfig,
if (desired->transparent)
{
int count;
XVisualInfo* vis = XGetVisualInfo(_glfw.x11.display,
VisualIDMask, &vi,
&count);
XVisualInfo* vis =
XGetVisualInfo(_glfw.x11.display, VisualIDMask, &vi, &count);
if (vis)
{
u->transparent = _glfwIsVisualTransparentX11(vis[0].visual);
XFree(vis);
}
}
}
#endif // _GLFW_X11
if (ctxconfig->client == GLFW_OPENGL_ES_API)