mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +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:
@@ -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