GPU: Fix broken assert
This commit is contained in:
parent
41d6d1463f
commit
884a385287
|
@ -676,9 +676,9 @@ void GPU_batch_draw_advanced(GPUBatch *batch, int v_first, int v_count, int i_fi
|
|||
}
|
||||
|
||||
/* Verify there is enough data do draw. */
|
||||
BLI_assert(i_first + i_count <= batch->inst ? batch->inst->vertex_len : 1);
|
||||
BLI_assert(v_first + v_count <= batch->elem ? batch->elem->index_len :
|
||||
batch->verts[0]->vertex_len);
|
||||
BLI_assert(i_first + i_count <= (batch->inst ? batch->inst->vertex_len : INT_MAX));
|
||||
BLI_assert(v_first + v_count <=
|
||||
(batch->elem ? batch->elem->index_len : batch->verts[0]->vertex_len));
|
||||
|
||||
if (!GPU_arb_base_instance_is_supported()) {
|
||||
if (i_first > 0) {
|
||||
|
|
Loading…
Reference in New Issue