[Mesa-dev] [PATCH v2 2/2] mesa: Change GLboolean to bool in GenerateMipmap target checker.
Kenneth Graunke
kenneth at whitecape.org
Sat Mar 5 05:05:56 UTC 2016
This is not API facing, so just use bool.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/main/genmipmap.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c
index 2a67777..6eacd42 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
--
2.7.2
More information about the mesa-dev
mailing list