diff options
| author | Stenzek <stenzek@gmail.com> | 2017-03-10 00:01:23 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-03-10 00:04:13 +1000 |
| commit | 2cd240af0d261d4600e273badd912570a5a09a19 (patch) | |
| tree | d81312ec5f03a8681bece3ef5f0b2aae82d8364d /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 401216608573182b0ece84ceaa9d2cdfb60fe757 (diff) | |
VideoBackends: Move max texture size to VideoConfig
This stops the virtual method call from within the Renderer constructor.
The initialization here for GL had to be moved to VideoBackend, as the
Renderer constructor will not have been executed before the value is
required.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 0ad86e82c5..e4de4f53b0 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -242,7 +242,7 @@ void TextureCacheBase::ScaleTextureCacheEntryTo(TextureCacheBase::TCacheEntryBas return; } - u32 max = g_renderer->GetMaxTextureSize(); + const u32 max = g_ActiveConfig.backend_info.MaxTextureSize; if (max < new_width || max < new_height) { ERROR_LOG(VIDEO, "Texture too big, width = %d, height = %d", new_width, new_height); |
