diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-10 07:14:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-10 07:14:40 +0100 |
commit | b26cdf1fe5e07d161bdb8542744b26c8e50f94c9 (patch) | |
tree | 6eab1f6c8f726fca18468ad883a2ca3c010898d0 /src/core/hle/service/nvflinger/buffer_queue.cpp | |
parent | Merge pull request #171 from bunnei/libnx-fixes (diff) | |
parent | fsp_srv: Stub MountSdCard. (diff) | |
download | yuzu-b26cdf1fe5e07d161bdb8542744b26c8e50f94c9.tar yuzu-b26cdf1fe5e07d161bdb8542744b26c8e50f94c9.tar.gz yuzu-b26cdf1fe5e07d161bdb8542744b26c8e50f94c9.tar.bz2 yuzu-b26cdf1fe5e07d161bdb8542744b26c8e50f94c9.tar.lz yuzu-b26cdf1fe5e07d161bdb8542744b26c8e50f94c9.tar.xz yuzu-b26cdf1fe5e07d161bdb8542744b26c8e50f94c9.tar.zst yuzu-b26cdf1fe5e07d161bdb8542744b26c8e50f94c9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp index c7206a683..f90c7ca51 100644 --- a/src/core/hle/service/nvflinger/buffer_queue.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue.cpp @@ -40,7 +40,11 @@ u32 BufferQueue::DequeueBuffer(u32 pixel_format, u32 width, u32 height) { return igbp_buffer.format == pixel_format && igbp_buffer.width == width && 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; return itr->slot; |