glsl: fix implicit int to bool warning

Maybe preprocess() should return a bool.
This commit is contained in:
Brian Paul 2011-01-14 17:45:23 -07:00
parent 7ff89b030f
commit d42acef139

View file

@ -185,7 +185,7 @@ compile_shader(struct gl_context *ctx, struct gl_shader *shader)
const char *source = shader->Source; const char *source = shader->Source;
state->error = preprocess(state, &source, &state->info_log, state->error = preprocess(state, &source, &state->info_log,
state->extensions, ctx->API); state->extensions, ctx->API) != 0;
if (!state->error) { if (!state->error) {
_mesa_glsl_lexer_ctor(state, source); _mesa_glsl_lexer_ctor(state, source);