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