diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2018-01-24 12:19:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-24 12:19:53 +0100 |
| commit | c66156148dd6ced799f10313cfe6c60e5189ac89 (patch) | |
| tree | 594a3ade77c1484e9b4b899493ffeac0a6a7b358 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | c3dc8bf1c0fd8151fed6557a90a72040361ae394 (diff) | |
| parent | 38e0b6e2ab53374e7335fee94209bb90cb3e9ed2 (diff) | |
Merge pull request #6317 from stenzek/renderer-bind
AbstractTexture: Move Bind() method to Renderer
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 444076aad4..a2c42d4e68 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -470,10 +470,10 @@ static u32 CalculateLevelSize(u32 level_0_size, u32 level) void TextureCacheBase::BindTextures() { - for (size_t i = 0; i < bound_textures.size(); ++i) + for (u32 i = 0; i < bound_textures.size(); i++) { - if (IsValidBindPoint(static_cast<u32>(i)) && bound_textures[i]) - bound_textures[i]->texture->Bind(static_cast<u32>(i)); + if (IsValidBindPoint(i) && bound_textures[i]) + g_renderer->SetTexture(i, bound_textures[i]->texture.get()); } } |
