From 64617d259ac4fe17a629904adeef3b183e96073a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 13 Apr 2020 14:45:40 -0400 Subject: [PATCH] opengl: Convert an int to an SDL_bool. --- src/video/SDL_egl.c | 4 ++-- src/video/SDL_sysvideo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 3a84e4a27..1561bc9ca 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -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. */ @@ -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; } } } diff --git a/src/video/SDL_sysvideo.h b/src/video/SDL_sysvideo.h index ea907c219..78f4d17b2 100644 --- a/src/video/SDL_sysvideo.h +++ b/src/video/SDL_sysvideo.h @@ -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 */