GPU: Check post shaders once per host frame, after resizes

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-09-29 13:16:41 -06:00
1 parent 4749872f2e
commit 759b494b6a
2 files changed
+5 -5

No files matched your search

+5
View File
@@ -75,6 +75,11 @@ void GPUCommon::BeginHostFrame(const DisplayLayoutConfig &config) {
CheckConfigChanged(config);
CheckDisplayResized();
CheckRenderResized(config);
// After the resizes, which ask for the post shaders to be rebuilt at the new size.
if (framebufferManager_) {
framebufferManager_->CheckPostShaders(config);
}
}
void GPUCommon::EndHostFrame() {
-5
View File
@@ -416,11 +416,6 @@ void GPUCommonHW::CheckConfigChanged(const DisplayLayoutConfig &config) {
BuildReportingInfo();
configChanged_ = false;
}
// Check needed when running tests.
if (framebufferManager_) {
framebufferManager_->CheckPostShaders(config);
}
}
void GPUCommonHW::CheckDisplayResized() {