Преглед изворни кода

nvnflinger: fix producer slot fence init

Liam пре 3 година
родитељ
комит
6e10a0c130
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/core/hle/service/nvnflinger/buffer_queue_producer.cpp

+ 1 - 0
src/core/hle/service/nvnflinger/buffer_queue_producer.cpp

@@ -793,6 +793,7 @@ Status BufferQueueProducer::SetPreallocatedBuffer(s32 slot,
     std::scoped_lock lock{core->mutex};
 
     slots[slot] = {};
+    slots[slot].fence = Fence::NoFence();
     slots[slot].graphic_buffer = buffer;
     slots[slot].frame_number = 0;