projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ff89b0
)
glsl: fix implicit int to bool warning
author
Brian Paul
<brianp@vmware.com>
Sat, 15 Jan 2011 00:45:23 +0000
(17:45 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sat, 15 Jan 2011 00:46:47 +0000
(17:46 -0700)
Maybe preprocess() should return a bool.
src/glsl/main.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/main.cpp
b/src/glsl/main.cpp
index 847540ddd9f328f94194c57c6289a0624a36f46e..2d146caca5ba6fb05aa595fcc48e84deeda720c6 100644
(file)
--- 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);