mirror of
https://github.com/glfw/glfw.git
synced 2024-11-15 02:34:36 +00:00
Formatting consistency fixes
This commit is contained in:
parent
7b6f25c360
commit
b0d196c43c
@ -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,
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user