diff --git a/src/egl_context.c b/src/egl_context.c index 6359733c..cd155827 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -881,7 +881,7 @@ _GLFWusercontext* _glfwCreateUserContextEGL(_GLFWwindow* window) else { eglChooseConfig(_glfw.egl.display, dummyConfigAttribs, &dummySurfaceConfig, 1, &dummySurfaceNumConfigs); - if( !dummySurfaceNumConfigs) + if (!dummySurfaceNumConfigs) { eglDestroyContext(_glfw.egl.display, context->egl.handle); _glfwInputError(GLFW_PLATFORM_ERROR, diff --git a/tests/usercontext.c b/tests/usercontext.c index 1420df32..c9c1db1a 100644 --- a/tests/usercontext.c +++ b/tests/usercontext.c @@ -43,13 +43,13 @@ int main(void) /* set the user context current */ glfwMakeUserContextCurrent(usercontext); - if (glfwGetCurrentContext()!=NULL) + if (glfwGetCurrentContext() != NULL) { fprintf(stderr, "Current glfw window context not NULL after glfwMakeUserContextCurrent\n"); glfwTerminate(); return -1; } - if (glfwGetCurrentUserContext()!=usercontext) + if (glfwGetCurrentUserContext() != usercontext) { fprintf(stderr, "Current user context not correct after glfwMakeUserContextCurrent\n"); glfwTerminate(); @@ -59,13 +59,13 @@ int main(void) /* set the window context current */ glfwMakeContextCurrent(window); - if ( glfwGetCurrentUserContext() != NULL ) + if (glfwGetCurrentUserContext() != NULL) { fprintf(stderr, "Current user context not NULL after glfwMakeContextCurrent\n"); glfwTerminate(); return -1; } - if ( glfwGetCurrentContext() != window ) + if (glfwGetCurrentContext() != window) { fprintf(stderr, "Current glfw window context not correct after glfwMakeContextCurrent\n"); glfwTerminate();