mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-18 03:37:04 +02:00
nvnflinger: release queued handles immediately on disconnection
This commit is contained in:
parent
cdb9fe978f
commit
2cdfbbc07d
4 changed files with 17 additions and 6 deletions
|
|
@ -742,6 +742,13 @@ Status BufferQueueProducer::Disconnect(NativeWindowApi api) {
|
|||
return Status::NoError;
|
||||
}
|
||||
|
||||
// HACK: We are not Android. Remove handle for items in queue, and clear queue.
|
||||
// Allows synchronous destruction of nvmap handles.
|
||||
for (auto& item : core->queue) {
|
||||
nvmap.FreeHandle(item.graphic_buffer->BufferId(), true);
|
||||
}
|
||||
core->queue.clear();
|
||||
|
||||
switch (api) {
|
||||
case NativeWindowApi::Egl:
|
||||
case NativeWindowApi::Cpu:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue