summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-09-28 01:11:47 +0200
committerLiam <byteslice@airmail.cc>2023-09-28 01:11:47 +0200
commit7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48 (patch)
tree1090ab164c0e5f65d3c528956a4ad4b55fe0e7a1 /src
parentMerge pull request #11613 from t895/fragment-exception-change (diff)
downloadyuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.tar
yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.tar.gz
yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.tar.bz2
yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.tar.lz
yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.tar.xz
yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.tar.zst
yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_query_cache.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp
index a32da3ba3..17b2587ad 100644
--- a/src/video_core/renderer_vulkan/vk_query_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp
@@ -1160,7 +1160,7 @@ struct QueryCacheRuntimeImpl {
cpu_memory_),
primitives_needed_minus_suceeded_streamer(
static_cast<size_t>(QueryType::StreamingPrimitivesNeededMinusSucceeded), runtime, 0u),
- hcr_setup{}, hcr_is_set{}, is_hcr_running{} {
+ hcr_setup{}, hcr_is_set{}, is_hcr_running{}, maxwell3d{} {
hcr_setup.sType = VK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT;
hcr_setup.pNext = nullptr;
@@ -1235,7 +1235,9 @@ void QueryCacheRuntime::Bind3DEngine(Maxwell3D* maxwell3d) {
template <typename Func>
void QueryCacheRuntime::View3DRegs(Func&& func) {
- func(*impl->maxwell3d);
+ if (impl->maxwell3d) {
+ func(*impl->maxwell3d);
+ }
}
void QueryCacheRuntime::EndHostConditionalRendering() {