mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
gobj: fix tests crash due to ShaderBuffer context not cleared at GSG death
This commit is contained in:
parent
c611abc6c2
commit
78c3db379c
@ -1371,6 +1371,8 @@ release_all_shader_buffers() {
|
||||
++bci) {
|
||||
|
||||
BufferContext *bc = (BufferContext *)(*bci);
|
||||
((ShaderBuffer *)bc->_object)->clear_prepared(this);
|
||||
bc->_object = nullptr;
|
||||
_released_shader_buffers.insert(bc);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user