diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-20 06:09:22 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-25 02:13:33 +0100 |
commit | 8e35eedf22c28e1602627243a68eeb52af788e7d (patch) | |
tree | d53ac2552df3a0e330b9dbed1c4f6f9309b5658a /src/core/hle/service | |
parent | hle: nvflinger: consumer_base: StillTracking: Should be const. (diff) | |
download | yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.tar yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.tar.gz yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.tar.bz2 yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.tar.lz yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.tar.xz yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.tar.zst yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue_producer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp index eba486754..99f7ec1ac 100644 --- a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp @@ -229,12 +229,10 @@ Status BufferQueueProducer::WaitForFreeSlotThenRelock(bool async, s32* found, Status BufferQueueProducer::DequeueBuffer(s32* out_slot, Fence* out_fence, bool async, u32 width, u32 height, PixelFormat format, u32 usage) { - { BufferQueueCore::AutoLock lock(core); } - LOG_DEBUG(Service_NVFlinger, "async={} w={} h={} format={}, usage={}", async ? "true" : "false", width, height, format, usage); - if ((width && !height) || (!width && height)) { + if ((width != 0 && height == 0) || (width == 0 && height != 0)) { LOG_ERROR(Service_NVFlinger, "invalid size: w={} h={}", width, height); return Status::BadValue; } |