diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-03-10 04:03:26 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-03-10 06:47:37 +0300 |
commit | bf1b323b154433ab4701a7ab455cdecaa3867819 (patch) | |
tree | 1c0887c562b5b61b7922fd640367c9289bfebda7 | |
parent | ec9b836d3b5634ed06c0ae5e2461731bc43f34bf (diff) |
DRW: Fix wrong test condition
Fixes the warning: address of array 'cmd->draw.batch->inst' will
always evaluate to 'true'
-rw-r--r-- | source/blender/draw/intern/draw_manager_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c index 49c71a3f212..85525ea7b55 100644 --- a/source/blender/draw/intern/draw_manager_exec.c +++ b/source/blender/draw/intern/draw_manager_exec.c @@ -1345,7 +1345,7 @@ static void draw_shgroup(DRWShadingGroup *shgroup, DRWState pass_state) break; case DRW_CMD_DRAW: if (!USE_BATCHING || state.obmats_loc == -1 || (G.f & G_FLAG_PICKSEL) || - cmd->draw.batch->inst) { + cmd->draw.batch->inst[0]) { draw_call_single_do( shgroup, &state, cmd->draw.batch, cmd->draw.handle, 0, 0, 0, 0, true); } |