diff options
author | Lioncash <mathew1800@gmail.com> | 2019-02-21 16:56:20 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-02-21 18:13:09 +0100 |
commit | fd15730767860659bdb58e8cd33074530a708295 (patch) | |
tree | b5225c8d0e1f8e60e373b7affb01c3d2e8f35ccc /src/core/hle/service/vi/layer/vi_layer.cpp | |
parent | service/nvflinger: Move display specifics over to vi_display (diff) | |
download | yuzu-fd15730767860659bdb58e8cd33074530a708295.tar yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.gz yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.bz2 yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.lz yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.xz yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.zst yuzu-fd15730767860659bdb58e8cd33074530a708295.zip |
Diffstat (limited to 'src/core/hle/service/vi/layer/vi_layer.cpp')
-rw-r--r-- | src/core/hle/service/vi/layer/vi_layer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/vi/layer/vi_layer.cpp b/src/core/hle/service/vi/layer/vi_layer.cpp index 3a83e5b95..48f4c57cb 100644 --- a/src/core/hle/service/vi/layer/vi_layer.cpp +++ b/src/core/hle/service/vi/layer/vi_layer.cpp @@ -2,12 +2,16 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include "common/assert.h" #include "core/hle/service/vi/layer/vi_layer.h" namespace Service::VI { Layer::Layer(u64 id, std::shared_ptr<NVFlinger::BufferQueue> queue) - : id{id}, buffer_queue{std::move(queue)} {} + : id{id}, buffer_queue{std::move(queue)} +{ + ASSERT_MSG(buffer_queue != nullptr, "buffer_queue may not be null."); +} Layer::~Layer() = default; |