Add accessor for UseFlags

This commit is contained in:
Henrik Rydgård committed 2022-12-13 18:27:45 +01:00
1 parent 2302a82c3e
commit ee19db091f
10 files changed
+31 -19

No files matched your search

+2 -2
View File
@@ -636,7 +636,7 @@ void GPUCommon::ClearCacheNextFrame() {
void GPUCommon::CheckConfigChanged() {
if (configChanged_) {
ClearCacheNextFrame();
gstate_c.useFlags = CheckGPUFeatures();
gstate_c.SetUseFlags(CheckGPUFeatures());
drawEngineCommon_->NotifyConfigChanged();
textureCache_->NotifyConfigChanged();
framebufferManager_->NotifyConfigChanged();
@@ -1244,7 +1244,7 @@ void GPUCommon::BeginFrame() {
if (drawEngineCommon_->EverUsedExactEqualDepth() && !sawExactEqualDepth_) {
sawExactEqualDepth_ = true;
gstate_c.useFlags = CheckGPUFeatures();
gstate_c.SetUseFlags(CheckGPUFeatures());
}
}