Skip to content
Permalink
Browse files

gobj: fix crash on shutdown with cached buffer contexts

This was a regression from 207263c
  • Loading branch information
rdb committed Nov 9, 2019
1 parent d2bd418 commit 9201d75bbe7d6cb91375c320b0e37ff520054442
Showing with 1 addition and 4 deletions.
  1. +1 −4 panda/src/gobj/preparedGraphicsObjects.cxx
@@ -1674,10 +1674,7 @@ cache_unprepared_buffer(BufferContext *buffer, size_t data_size_bytes,
(int)buffer_cache_size > released_buffer_cache_size) {
BufferContext *released_buffer = buffer_list.back();
buffer_list.pop_back();
if (released_buffer->_object != nullptr) {
released_buffer->_object = nullptr;
released_buffers.push_back(released_buffer);
}
released_buffers.push_back(released_buffer);
buffer_cache_size -= release_key._data_size_bytes;
}

0 comments on commit 9201d75

Please sign in to comment.
You can’t perform that action at this time.