mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
opengl: Convert an int to an SDL_bool.
This commit is contained in:
parent
389c8995d2
commit
64617d259a
@ -959,7 +959,7 @@ SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface)
|
|||||||
/* On OpenGL ES, the GL_OES_surfaceless_context extension must be
|
/* On OpenGL ES, the GL_OES_surfaceless_context extension must be
|
||||||
* present. */
|
* present. */
|
||||||
if (SDL_GL_ExtensionSupported("GL_OES_surfaceless_context")) {
|
if (SDL_GL_ExtensionSupported("GL_OES_surfaceless_context")) {
|
||||||
_this->gl_allow_no_surface = 1;
|
_this->gl_allow_no_surface = SDL_TRUE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Desktop OpenGL supports it by default from version 3.0 on. */
|
/* Desktop OpenGL supports it by default from version 3.0 on. */
|
||||||
@ -969,7 +969,7 @@ SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface)
|
|||||||
GLint v = 0;
|
GLint v = 0;
|
||||||
glGetIntegervFunc(GL_MAJOR_VERSION, &v);
|
glGetIntegervFunc(GL_MAJOR_VERSION, &v);
|
||||||
if (v >= 3) {
|
if (v >= 3) {
|
||||||
_this->gl_allow_no_surface = 1;
|
_this->gl_allow_no_surface = SDL_TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ struct SDL_VideoDevice
|
|||||||
/* Flag that stores whether it's allowed to call SDL_GL_MakeCurrent()
|
/* 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,
|
* with a NULL window, but a non-NULL context. (Not allowed in most cases,
|
||||||
* except on EGL under some circumstances.) */
|
* except on EGL under some circumstances.) */
|
||||||
int gl_allow_no_surface;
|
SDL_bool gl_allow_no_surface;
|
||||||
|
|
||||||
/* * * */
|
/* * * */
|
||||||
/* Data used by the Vulkan drivers */
|
/* Data used by the Vulkan drivers */
|
||||||
|
Loading…
Reference in New Issue
Block a user