diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-09-18 20:01:54 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-09-20 17:34:57 +0100 |
commit | 2ab4e1d1e6091f2170b1395b8d1bb30d42f133a7 (patch) | |
tree | 6fdcf7bf8bb270cfe684bbb92ee28bd891d14a44 /src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c | |
parent | 75c394f5670125aa5eabdcbeecf83f163806238d (diff) | |
download | external_mesa3d-2ab4e1d1e6091f2170b1395b8d1bb30d42f133a7.zip external_mesa3d-2ab4e1d1e6091f2170b1395b8d1bb30d42f133a7.tar.gz external_mesa3d-2ab4e1d1e6091f2170b1395b8d1bb30d42f133a7.tar.bz2 |
draw: Ensure draw_pt_middle_end::bind_parameters is never NULL.
Prevents calling NULL pointer with softpipe in certain cases.
Trivial.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c index d30cd41..bdfbbfb 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c @@ -178,6 +178,12 @@ fse_prepare(struct draw_pt_middle_end *middle, } +static void +fse_bind_parameters(struct draw_pt_middle_end *middle) +{ + /* No-op? */ +} + static void fse_run_linear(struct draw_pt_middle_end *middle, @@ -366,6 +372,7 @@ draw_pt_middle_fse(struct draw_context *draw) return NULL; fse->base.prepare = fse_prepare; + fse->base.bind_parameters = fse_bind_parameters; fse->base.run = fse_run; fse->base.run_linear = fse_run_linear; fse->base.run_linear_elts = fse_run_linear_elts; |