From fe1446bf92e89a59df4935b55703d4d3e62fb7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 21 Nov 2022 19:57:59 +0100 Subject: [PATCH] Test crashfix --- GPU/GPUCommon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index 6222e1edb8..e6e7f2f25f 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -491,7 +491,9 @@ void GPUCommon::BeginHostFrame() { void GPUCommon::EndHostFrame() { // Probably not necessary. - draw_->InvalidateCachedState(); + if (draw_) { + draw_->InvalidateCachedState(); + } } void GPUCommon::Reinitialize() {