summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2017-03-09 21:06:50 +0100
committerGitHub <noreply@github.com>2017-03-09 21:06:50 +0100
commitef74c5eabd52a75eb42ecf9b36701dca11d3061f (patch)
tree2cc71d56b6b97b05e29666d169824aacffc0258b /Source/Core/VideoCommon/TextureCacheBase.cpp
parentcf848b7c42071104c2ade3b1b8230e2233a40f11 (diff)
parent2cd240af0d261d4600e273badd912570a5a09a19 (diff)
Merge pull request #5051 from stenzek/renderer-fixes
VideoBackends: Fix crashes introduced by #4999
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index b1dbee5407..2f9b374dd6 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);