summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-17 01:11:50 +0100
committerbunnei <bunneidev@gmail.com>2018-03-17 01:11:50 +0100
commit494275fd38dcf05d3f57b143e8c7d5b7750fc372 (patch)
tree79c029a7b82923a6137610bb390cebac18da36ee /src/core/hle
parentMerge pull request #232 from bunnei/heap-fixes (diff)
downloadyuzu-494275fd38dcf05d3f57b143e8c7d5b7750fc372.tar
yuzu-494275fd38dcf05d3f57b143e8c7d5b7750fc372.tar.gz
yuzu-494275fd38dcf05d3f57b143e8c7d5b7750fc372.tar.bz2
yuzu-494275fd38dcf05d3f57b143e8c7d5b7750fc372.tar.lz
yuzu-494275fd38dcf05d3f57b143e8c7d5b7750fc372.tar.xz
yuzu-494275fd38dcf05d3f57b143e8c7d5b7750fc372.tar.zst
yuzu-494275fd38dcf05d3f57b143e8c7d5b7750fc372.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp
index ff7b6b039..e2c25048b 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp
@@ -36,9 +36,7 @@ u32 BufferQueue::DequeueBuffer(u32 pixel_format, u32 width, u32 height) {
return false;
// Make sure that the parameters match.
- auto& igbp_buffer = buffer.igbp_buffer;
- return igbp_buffer.format == pixel_format && igbp_buffer.width == width &&
- igbp_buffer.height == height;
+ return buffer.igbp_buffer.width == width && buffer.igbp_buffer.height == height;
});
if (itr == queue.end()) {
LOG_CRITICAL(Service_NVDRV, "no free buffers for pixel_format=%d, width=%d, height=%d",