diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2026-04-12 20:55:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-12 20:55:22 -0500 |
| commit | b62bfe4b30a03077790b61fd8bc4bcadcb0b673b (patch) | |
| tree | 2a3b5909479267586f06f3bfb35a01f671cf0e75 /Source/Core/Common | |
| parent | 6ed8dec7ac6fd5113adc3664c10875fe452b4efe (diff) | |
| parent | fdbc2883ef3984f9f766aaca0dbae0cf3844e8d2 (diff) | |
Merge pull request #14336 from SuperSamus/arbitrary-mipmap-disables-gpu-decoding
VideoCommon: Invert interaction between Arbitrary Mipmap Detection and GPU Texture Decoding (the former disables the latter)
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Config/Config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/Common/Config/Config.h b/Source/Core/Common/Config/Config.h index b749986f7e..d5357e194d 100644 --- a/Source/Core/Common/Config/Config.h +++ b/Source/Core/Common/Config/Config.h @@ -62,6 +62,14 @@ T Get(LayerType layer, const Info<T>& info) } template <typename T> +T Get(const Layer* game_layer, const Info<T>& setting) +{ + if (game_layer != nullptr) + return game_layer->Get(setting); + return Get(setting); +} + +template <typename T> T Get(const Info<T>& info) { CachedValue<T> cached = info.GetCachedValue(); |
