Fix T75914: Assert Knife Tool

Actually the assert was incorrect. It tested for an active buffer, but
an batch would also be ok.
This commit is contained in:
Jeroen Bakker 2020-04-20 15:10:21 +02:00
parent 25e774422c
commit 915866f0d9
Notes: blender-bot 2023-04-19 22:54:54 +02:00
Referenced by issue #75914, Debug assert is triggered when using the Knife tool
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ void immEnd(void)
{
#if TRUST_NO_ONE
assert(imm.prim_type != GPU_PRIM_NONE); /* make sure we're between a Begin/End pair */
assert(imm.active_buffer);
assert(imm.active_buffer || imm.batch);
#endif
uint buffer_bytes_used;