mesa: Change GLboolean to bool in GenerateMipmap target checker.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 4 Mar 2016 05:38:32 +0000 (21:38 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Mar 2016 22:01:34 +0000 (14:01 -0800)
This is not API facing, so just use bool.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/genmipmap.c

index 2a67777164eb424f16e92a82583bae1c5f571bc0..6eacd424df7f15974f288e39bc34d7434c8eccce 100644 (file)
@@ -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