Fix T79782 GPU: Crash cause by shadow batch reference
After drawing, the batch could be reset and draw again using other parameters. Avoid having to track references by setting the batch pointer to NULL after drawing.
This commit is contained in:
parent
4814836120
commit
fe1827df82
Notes:
blender-bot
2023-02-13 21:30:32 +01:00
Referenced by issue #79782, Crash after transforming curve in edit mode
|
@ -235,6 +235,8 @@ void GLDrawList::submit(void)
|
|||
}
|
||||
/* Do not submit this buffer again. */
|
||||
command_len_ = 0;
|
||||
/* Avoid keeping reference to the batch. */
|
||||
batch_ = NULL;
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
|
Loading…
Reference in New Issue