From: Ian Romanick <ian.d.roman...@intel.com>

No change measured by size.

Signed-off-by: Ian Romanick <ian.d.roman...@intel.com>
---
 src/mesa/main/texenv.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c
index 0be6708..6e62fd1 100644
--- a/src/mesa/main/texenv.c
+++ b/src/mesa/main/texenv.c
@@ -51,7 +51,7 @@ set_env_mode(struct gl_context *ctx,
              struct gl_texture_unit *texUnit,
              GLenum mode)
 {
-   GLboolean legal;
+   bool legal;
 
    if (texUnit->EnvMode == mode)
       return;
@@ -63,24 +63,23 @@ set_env_mode(struct gl_context *ctx,
    case GL_REPLACE:
    case GL_ADD:
    case GL_COMBINE:
-      legal = GL_TRUE;
+      legal = true;
       break;
    case GL_REPLACE_EXT:
       mode = GL_REPLACE; /* GL_REPLACE_EXT != GL_REPLACE */
-      legal = GL_TRUE;
+      legal = true;
       break;
    case GL_COMBINE4_NV:
       legal = ctx->Extensions.NV_texture_env_combine4;
       break;
    default:
-      legal = GL_FALSE;
+      legal = false;
    }
 
    if (legal) {
       FLUSH_VERTICES(ctx, _NEW_TEXTURE_STATE);
       texUnit->EnvMode = mode;
-   }
-   else {
+   } else {
       TE_ERROR(GL_INVALID_ENUM, "glTexEnv(param=%s)", mode);
    }
 }
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to