diff options
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/opengl/gl_drawlist.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_drawlist.cc b/source/blender/gpu/opengl/gl_drawlist.cc index 575b2c989e4..b02681af892 100644 --- a/source/blender/gpu/opengl/gl_drawlist.cc +++ b/source/blender/gpu/opengl/gl_drawlist.cc @@ -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; } /** \} */ |