Skip to content

Commit

Permalink
opengl: Convert an int to an SDL_bool.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 13, 2020
1 parent 389c899 commit 64617d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_egl.c
Expand Up @@ -959,7 +959,7 @@ SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface)
/* On OpenGL ES, the GL_OES_surfaceless_context extension must be
* present. */
if (SDL_GL_ExtensionSupported("GL_OES_surfaceless_context")) {
_this->gl_allow_no_surface = 1;
_this->gl_allow_no_surface = SDL_TRUE;
}
} else {
/* Desktop OpenGL supports it by default from version 3.0 on. */
Expand All @@ -969,7 +969,7 @@ SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface)
GLint v = 0;
glGetIntegervFunc(GL_MAJOR_VERSION, &v);
if (v >= 3) {
_this->gl_allow_no_surface = 1;
_this->gl_allow_no_surface = SDL_TRUE;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_sysvideo.h
Expand Up @@ -378,7 +378,7 @@ struct SDL_VideoDevice
/* Flag that stores whether it's allowed to call SDL_GL_MakeCurrent()
* with a NULL window, but a non-NULL context. (Not allowed in most cases,
* except on EGL under some circumstances.) */
int gl_allow_no_surface;
SDL_bool gl_allow_no_surface;

/* * * */
/* Data used by the Vulkan drivers */
Expand Down

0 comments on commit 64617d2

Please sign in to comment.