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:
Clément Foucault 2020-08-18 13:52:20 +02:00
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
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
/** \} */