GLContext::WasLost - Determines if we lost the context due to a TDR or another outstanding event.

This commit is contained in:
Dr. Chat
2015-12-20 21:13:51 -06:00
parent 0c60cc5f48
commit 30eda6909f
3 changed files with 66 additions and 18 deletions

View File

@@ -40,6 +40,7 @@ class GLContext : public GraphicsContext {
bool is_current() override;
bool MakeCurrent() override;
void ClearCurrent() override;
bool WasLost() override;
void BeginSwap() override;
void EndSwap() override;
@@ -80,6 +81,8 @@ class GLContext : public GraphicsContext {
Blitter blitter_;
std::unique_ptr<GLImmediateDrawer> immediate_drawer_;
bool context_lost_ = false;
};
} // namespace gl