Move post-processing settings to DisplayLayoutScreen
This commit is contained in:
parent
575560f679
commit
6d9bb1b29e
10 changed files with 133 additions and 98 deletions
|
@ -107,14 +107,15 @@ bool FramebufferManagerCommon::UpdateRenderSize() {
|
|||
return newRender || newSettings;
|
||||
}
|
||||
|
||||
void FramebufferManagerCommon::BeginFrame() {
|
||||
DecimateFBOs();
|
||||
|
||||
// Might have a new post shader - let's compile it.
|
||||
void FramebufferManagerCommon::CheckPostShaders() {
|
||||
if (updatePostShaders_) {
|
||||
presentation_->UpdatePostShader();
|
||||
updatePostShaders_ = false;
|
||||
}
|
||||
}
|
||||
|
||||
void FramebufferManagerCommon::BeginFrame() {
|
||||
DecimateFBOs();
|
||||
|
||||
currentRenderVfb_ = nullptr;
|
||||
}
|
||||
|
@ -2382,6 +2383,10 @@ void FramebufferManagerCommon::NotifyRenderResized() {
|
|||
#endif
|
||||
}
|
||||
|
||||
void FramebufferManagerCommon::NotifyConfigChanged() {
|
||||
updatePostShaders_ = true;
|
||||
}
|
||||
|
||||
void FramebufferManagerCommon::DestroyAllFBOs() {
|
||||
currentRenderVfb_ = nullptr;
|
||||
displayFramebuf_ = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue