diff options
| author | Stenzek <stenzek@gmail.com> | 2018-01-21 23:13:25 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-01-22 13:22:09 +1000 |
| commit | 38e0b6e2ab53374e7335fee94209bb90cb3e9ed2 (patch) | |
| tree | a64d1b48bc9f7fedc5c9d83475d58b1118cb1057 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | fca56d532a4da844c324d7a4ea05252e72d89fcf (diff) | |
AbstractTexture: Move Bind() method to Renderer
This makes state tracking simpler, and enables easier porting to command
lists later on.
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()); } } |
