i965: Fix brw_link_shader to return false rather than NULL.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Aug 2012 18:39:49 +0000 (11:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 25 Aug 2012 19:01:09 +0000 (12:01 -0700)
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>

src/mesa/drivers/dri/i965/brw_shader.cpp

index 86426e0cfea9c3a7e6d087e013532209425e9f6c..77e939207130d434f4f661d874919db021c8bcf7 100644 (file)
@@ -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,