summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-08-21 11:39:49 -0700
committerKenneth Graunke <kenneth@whitecape.org>2012-08-25 12:01:09 -0700
commitd1447f5bc92e6bcbc9180e606cdfef9540678918 (patch)
treedf52ed6fea17e545a45c35655d8ffb5077ec5461 /src/mesa
parentf9767dac9a06aad93a9d61d108055ad673498bf8 (diff)
i965: Fix brw_link_shader to return false rather than NULL.
Fixes brw_shader.cpp:101:9: warning: converting to non-pointer type 'GLboolean {aka unsigned char}' from NULL [-Wconversion-null] Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-with-great-enthusiasm-by: Paul Berry <stereotype441@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
index 86426e0cfea..77e93920713 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
@@ -98,7 +98,7 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
struct gl_program *prog =
ctx->Driver.NewProgram(ctx, targets[stage], shader->base.Name);
if (!prog)
- return NULL;
+ return false;
prog->Parameters = _mesa_new_parameter_list();
_mesa_generate_parameters_list_for_uniforms(shProg, &shader->base,