[Vulkan] Better handling of device lost events (present fatal error dialog)
This commit is contained in:
@@ -38,11 +38,16 @@ class VulkanContext : public GraphicsContext {
|
||||
bool MakeCurrent() override;
|
||||
void ClearCurrent() override;
|
||||
|
||||
bool WasLost() override { return context_lost_; }
|
||||
|
||||
void BeginSwap() override;
|
||||
void EndSwap() override;
|
||||
|
||||
std::unique_ptr<RawImage> Capture() override;
|
||||
|
||||
protected:
|
||||
bool context_lost_ = false;
|
||||
|
||||
private:
|
||||
friend class VulkanProvider;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user