DRW: Command: Fix custom group test being always true

This commit is contained in:
Clément Foucault
2022-11-03 18:54:08 +01:00
parent 838d20b990
commit 44dd158803

View File

@@ -482,7 +482,7 @@ class DrawMultiBuf {
ResourceHandle handle)
{
/* Custom draw-calls cannot be batched and will produce one group per draw. */
const bool custom_group = (vertex_first != 0 || vertex_first != -1 || vertex_len != -1);
const bool custom_group = ((vertex_first != 0 && vertex_first != -1) || vertex_len != -1);
instance_len = instance_len != -1 ? instance_len : 1;