summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-01-14 17:45:23 -0700
committerBrian Paul <brianp@vmware.com>2011-01-14 17:46:47 -0700
commitd42acef139740a54fe571f99b62cba7720734d8c (patch)
treef7eb49cbf107d81ae2517b8a1154a4e0c1413394
parent7ff89b030f92a0673f0a8b28ee4fbbff88906e1a (diff)
glsl: fix implicit int to bool warning
Maybe preprocess() should return a bool.
-rw-r--r--src/glsl/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index 847540ddd9f..2d146caca5b 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -185,7 +185,7 @@ compile_shader(struct gl_context *ctx, struct gl_shader *shader)
const char *source = shader->Source;
state->error = preprocess(state, &source, &state->info_log,
- state->extensions, ctx->API);
+ state->extensions, ctx->API) != 0;
if (!state->error) {
_mesa_glsl_lexer_ctor(state, source);