mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
nvflinger: (Hack) Use first available buffer if none are found.
This commit is contained in:
parent
63de56ee0f
commit
725304094e
1 changed files with 5 additions and 1 deletions
|
@ -40,7 +40,11 @@ u32 BufferQueue::DequeueBuffer(u32 pixel_format, u32 width, u32 height) {
|
||||||
return igbp_buffer.format == pixel_format && igbp_buffer.width == width &&
|
return igbp_buffer.format == pixel_format && igbp_buffer.width == width &&
|
||||||
igbp_buffer.height == height;
|
igbp_buffer.height == height;
|
||||||
});
|
});
|
||||||
ASSERT(itr != queue.end());
|
if (itr == queue.end()) {
|
||||||
|
LOG_CRITICAL(Service_NVDRV, "no free buffers for pixel_format=%d, width=%d, height=%d",
|
||||||
|
pixel_format, width, height);
|
||||||
|
itr = queue.begin();
|
||||||
|
}
|
||||||
|
|
||||||
itr->status = Buffer::Status::Dequeued;
|
itr->status = Buffer::Status::Dequeued;
|
||||||
return itr->slot;
|
return itr->slot;
|
||||||
|
|
Loading…
Reference in a new issue