~GPU_Vulkan: Check that we still have a draw_ pointer before trying to drain the compile queue.

This commit is contained in:
Henrik Rydgård
2023-05-03 22:33:34 +02:00
parent 0e2fb13c61
commit c9b7c815a1
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -640,7 +640,7 @@ void GLPushBuffer::Defragment() {
_dbg_assert_msg_(!OnRenderThread(), "Defragment must not run on the render thread");
if (buffers_.size() <= 1) {
// Let's take this chance to jetison localMemory we don't need.
// Let's take this opportunity to jettison any localMemory we don't need.
for (auto &info : buffers_) {
if (info.deviceMemory) {
FreeAlignedMemory(info.localMemory);