Skip to content

Commit

Permalink
SoftGPU: implement CheckConfigChanged, have it check postshaders. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed May 26, 2023
1 parent 6cee08c commit 5c94a20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion GPU/Software/SoftGpu.cpp
Expand Up @@ -730,7 +730,18 @@ void SoftGPU::NotifyDisplayResized() {
}
}

void SoftGPU::NotifyConfigChanged() {}
void SoftGPU::NotifyConfigChanged() {
configChanged_ = true;
}

void SoftGPU::CheckConfigChanged() {
if (configChanged_) {
drawEngineCommon_->NotifyConfigChanged();
BuildReportingInfo();
presentation_->UpdatePostShader();
configChanged_ = false;
}
}

void SoftGPU::FastRunLoop(DisplayList &list) {
PROFILE_THIS_SCOPE("soft_runloop");
Expand Down
2 changes: 2 additions & 0 deletions GPU/Software/SoftGpu.h
Expand Up @@ -154,6 +154,8 @@ class SoftGPU : public GPUCommon {
void NotifyDisplayResized() override;
void NotifyConfigChanged() override;

void CheckConfigChanged() override;

void GetReportingInfo(std::string &primaryInfo, std::string &fullInfo) override {
primaryInfo = "Software";
fullInfo = "Software";
Expand Down

0 comments on commit 5c94a20

Please sign in to comment.