diff options
author | Kenneth Graunke <[email protected]> | 2016-03-03 21:38:32 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-03-07 14:01:34 -0800 |
commit | 1107e48b9af97fc51da551c6d1b3c628b0a42118 (patch) | |
tree | 7d2fa7aba96faa21745f2f7d47b9bcdede0c2467 | |
parent | 2f8a43586eef549105ad2f41ca9173c17b7e3440 (diff) |
mesa: Change GLboolean to bool in GenerateMipmap target checker.
This is not API facing, so just use bool.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
-rw-r--r-- | src/mesa/main/genmipmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c index 2a67777164e..6eacd424df7 100644 --- a/src/mesa/main/genmipmap.c +++ b/src/mesa/main/genmipmap.c @@ -42,14 +42,14 @@ bool _mesa_is_valid_generate_texture_mipmap_target(struct gl_context *ctx, GLenum target) { - GLboolean error; + bool error; switch (target) { case GL_TEXTURE_1D: error = _mesa_is_gles(ctx); break; case GL_TEXTURE_2D: - error = GL_FALSE; + error = false; break; case GL_TEXTURE_3D: error = ctx->API == API_OPENGLES; @@ -69,10 +69,10 @@ _mesa_is_valid_generate_texture_mipmap_target(struct gl_context *ctx, !ctx->Extensions.ARB_texture_cube_map_array; break; default: - error = GL_TRUE; + error = true; } - return (error != GL_TRUE); + return !error; } bool |