From 38e0b6e2ab53374e7335fee94209bb90cb3e9ed2 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 21 Jan 2018 23:13:25 +1000 Subject: AbstractTexture: Move Bind() method to Renderer This makes state tracking simpler, and enables easier porting to command lists later on. --- Source/Core/VideoCommon/TextureCacheBase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp') 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(i)) && bound_textures[i]) - bound_textures[i]->texture->Bind(static_cast(i)); + if (IsValidBindPoint(i) && bound_textures[i]) + g_renderer->SetTexture(i, bound_textures[i]->texture.get()); } } -- cgit v1.2.3