Formatting consistency fixes

This commit is contained in:
Doug Binks 2021-03-23 18:45:29 +00:00
parent 7b6f25c360
commit b0d196c43c
2 changed files with 5 additions and 5 deletions

View File

@ -881,7 +881,7 @@ _GLFWusercontext* _glfwCreateUserContextEGL(_GLFWwindow* window)
else else
{ {
eglChooseConfig(_glfw.egl.display, dummyConfigAttribs, &dummySurfaceConfig, 1, &dummySurfaceNumConfigs); eglChooseConfig(_glfw.egl.display, dummyConfigAttribs, &dummySurfaceConfig, 1, &dummySurfaceNumConfigs);
if( !dummySurfaceNumConfigs) if (!dummySurfaceNumConfigs)
{ {
eglDestroyContext(_glfw.egl.display, context->egl.handle); eglDestroyContext(_glfw.egl.display, context->egl.handle);
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,

View File

@ -43,13 +43,13 @@ int main(void)
/* set the user context current */ /* set the user context current */
glfwMakeUserContextCurrent(usercontext); glfwMakeUserContextCurrent(usercontext);
if (glfwGetCurrentContext()!=NULL) if (glfwGetCurrentContext() != NULL)
{ {
fprintf(stderr, "Current glfw window context not NULL after glfwMakeUserContextCurrent\n"); fprintf(stderr, "Current glfw window context not NULL after glfwMakeUserContextCurrent\n");
glfwTerminate(); glfwTerminate();
return -1; return -1;
} }
if (glfwGetCurrentUserContext()!=usercontext) if (glfwGetCurrentUserContext() != usercontext)
{ {
fprintf(stderr, "Current user context not correct after glfwMakeUserContextCurrent\n"); fprintf(stderr, "Current user context not correct after glfwMakeUserContextCurrent\n");
glfwTerminate(); glfwTerminate();
@ -59,13 +59,13 @@ int main(void)
/* set the window context current */ /* set the window context current */
glfwMakeContextCurrent(window); glfwMakeContextCurrent(window);
if ( glfwGetCurrentUserContext() != NULL ) if (glfwGetCurrentUserContext() != NULL)
{ {
fprintf(stderr, "Current user context not NULL after glfwMakeContextCurrent\n"); fprintf(stderr, "Current user context not NULL after glfwMakeContextCurrent\n");
glfwTerminate(); glfwTerminate();
return -1; return -1;
} }
if ( glfwGetCurrentContext() != window ) if (glfwGetCurrentContext() != window)
{ {
fprintf(stderr, "Current glfw window context not correct after glfwMakeContextCurrent\n"); fprintf(stderr, "Current glfw window context not correct after glfwMakeContextCurrent\n");
glfwTerminate(); glfwTerminate();