diff options
author | Zack Rusin <[email protected]> | 2010-03-30 12:35:40 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-03-30 12:35:40 -0400 |
commit | 1963112f9d0a2ed8e237641eef8eb384365d1375 (patch) | |
tree | 4b2ef1f055dc09c94fa1dffc570f30fb81579024 /src/gallium/auxiliary/draw/draw_gs.c | |
parent | f44af927ff90a9fe1256d8c6f4869a39a55043d3 (diff) |
draw llvm: various fixes for the translation code
the from translation isn't quite right yet
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_gs.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_gs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c index 7069aa6b181..131deed43e4 100644 --- a/src/gallium/auxiliary/draw/draw_gs.c +++ b/src/gallium/auxiliary/draw/draw_gs.c @@ -342,10 +342,10 @@ void draw_geometry_shader_delete(struct draw_geometry_shader *shader) void draw_geometry_shader_prepare(struct draw_geometry_shader *shader, struct draw_context *draw) { - if (shader->machine->Tokens != shader->state.tokens) { - tgsi_exec_machine_bind_shader(shader->machine, - shader->state.tokens, - draw->gs.num_samplers, - draw->gs.samplers); - } + if (shader && shader->machine->Tokens != shader->state.tokens) { + tgsi_exec_machine_bind_shader(shader->machine, + shader->state.tokens, + draw->gs.num_samplers, + draw->gs.samplers); + } } |