mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 09:10:11 +01:00
glsl: fix implicit int to bool warning
Maybe preprocess() should return a bool.
This commit is contained in:
parent
7ff89b030f
commit
d42acef139
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue