mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Add a new prepareToRender() callback for renders to perform their initial window clears
This consolidates all the clearing that was strewn across the codebase.
This commit is contained in:
1 parent
1d1fa0577b
commit
e76780e105
11 files changed
+105
-73
No files matched your search
@@ -256,6 +256,12 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void prepareToRender() {
|
||||
// Allow renderers to perform any final preparations for
|
||||
// rendering after they have been selected to render. Such
|
||||
// preparations might include clearing the window.
|
||||
}
|
||||
|
||||
// Allow renderers to expose their type
|
||||
enum class RendererType {
|
||||
Unknown,
|
||||
|
||||
Reference in new issue
Block a user