diff options
author | Adam Jackson <ajax@redhat.com> | 2017-08-16 14:49:16 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-08-21 10:12:54 -0400 |
commit | 51bab63b7353319c51ec2f1adaed95d86e4f6119 (patch) | |
tree | 5f86195aca40518cf74e7aaa9d796bd99ca9866a /glx/createcontext.c | |
parent | 8e3b26ceaa86eaf98a78f6b84f46a4a86aed8ef8 (diff) | |
download | xserver-51bab63b7353319c51ec2f1adaed95d86e4f6119.tar.gz |
glx: Remove True/False defines
Those are xlib spellings, we say TRUE/FALSE pretty consistently
elsewhere in the server.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glx/createcontext.c')
-rw-r--r-- | glx/createcontext.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/glx/createcontext.c b/glx/createcontext.c index 068b35fa7..1216f9412 100644 --- a/glx/createcontext.c +++ b/glx/createcontext.c @@ -37,29 +37,29 @@ static Bool validate_GL_version(int major_version, int minor_version) { if (major_version <= 0 || minor_version < 0) - return False; + return FALSE; switch (major_version) { case 1: if (minor_version > 5) - return False; + return FALSE; break; case 2: if (minor_version > 1) - return False; + return FALSE; break; case 3: if (minor_version > 3) - return False; + return FALSE; break; default: break; } - return True; + return TRUE; } static Bool @@ -70,9 +70,9 @@ validate_render_type(uint32_t render_type) case GLX_COLOR_INDEX_TYPE: case GLX_RGBA_FLOAT_TYPE_ARB: case GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT: - return True; + return TRUE; default: - return False; + return FALSE; } } @@ -316,7 +316,7 @@ __glXDisp_CreateContextAttribsARB(__GLXclientState * cl, GLbyte * pc) ctx->config = config; ctx->id = req->context; ctx->share_id = req->shareList; - ctx->idExists = True; + ctx->idExists = TRUE; ctx->isDirect = req->isDirect; ctx->renderMode = GL_RENDER; ctx->resetNotificationStrategy = reset; |