aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/renderer_base.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-06-01 20:07:18 -0700
committerbunnei <bunneidev@gmail.com>2023-06-03 00:06:07 -0700
commitfb362f0b6eeff7e8176409f244524b81b9558178 (patch)
tree1b76d9222948d49fbaa1252471774e81aae1419b /src/video_core/renderer_base.h
parentd57495d3c02398ddfe3274dbd9adf1c5be6b505f (diff)
android: renderer_vulkan: Fix crash with surface recreation.
Diffstat (limited to 'src/video_core/renderer_base.h')
-rw-r--r--src/video_core/renderer_base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h
index 78ea5208b9..3e12a88138 100644
--- a/src/video_core/renderer_base.h
+++ b/src/video_core/renderer_base.h
@@ -89,6 +89,9 @@ public:
void RequestScreenshot(void* data, std::function<void(bool)> callback,
const Layout::FramebufferLayout& layout);
+ /// This is called to notify the rendering backend of a surface change
+ virtual void NotifySurfaceChanged() {}
+
protected:
Core::Frontend::EmuWindow& render_window; ///< Reference to the render window handle.
std::unique_ptr<Core::Frontend::GraphicsContext> context;