android: renderer_vulkan: Fix crash with surface recreation.

This commit is contained in:
bunnei 2023-06-01 20:07:18 -07:00
parent 057117f009
commit 098e2c4077
5 changed files with 36 additions and 1 deletions

View file

@ -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;