From 1107e48b9af97fc51da551c6d1b3c628b0a42118 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 3 Mar 2016 21:38:32 -0800 Subject: mesa: Change GLboolean to bool in GenerateMipmap target checker. This is not API facing, so just use bool. Signed-off-by: Kenneth Graunke Reviewed-by: Matt Turner --- src/mesa/main/genmipmap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa/main/genmipmap.c') 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 -- cgit v1.2.3