summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2026-01-18 13:33:14 -0500
committerGitHub <noreply@github.com>2026-01-18 13:33:14 -0500
commitf8b47c031fc7dc506fe1d0f7fed21a2cd2f8000f (patch)
tree5743cfa77eca4f06d57289393b0f4d30df6cfe58 /Source/Core/VideoCommon/VertexManagerBase.cpp
parentd8e123a70cefa176febba1f4e720ba276ba81a92 (diff)
parentfb07406f102eaa2d237c95c35e8853680d902b6a (diff)
Merge pull request #14291 from JosJuice/defer-textureinfo
VideoCommon: Defer creating TextureInfo
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index 312b8cb005..2bc6d586d7 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -36,7 +36,6 @@
#include "VideoCommon/PixelShaderManager.h"
#include "VideoCommon/Statistics.h"
#include "VideoCommon/TextureCacheBase.h"
-#include "VideoCommon/TextureInfo.h"
#include "VideoCommon/VertexLoaderManager.h"
#include "VideoCommon/VertexShaderManager.h"
#include "VideoCommon/VideoBackendBase.h"
@@ -569,7 +568,7 @@ void VertexManagerBase::Flush()
{
for (const u32 i : used_textures)
{
- const auto cache_entry = g_texture_cache->Load(TextureInfo::FromStage(i));
+ const auto cache_entry = g_texture_cache->Load(i);
if (!cache_entry)
continue;
const float custom_tex_scale = cache_entry->GetWidth() / float(cache_entry->native_width);
@@ -581,7 +580,7 @@ void VertexManagerBase::Flush()
{
for (const u32 i : used_textures)
{
- const auto cache_entry = g_texture_cache->Load(TextureInfo::FromStage(i));
+ const auto cache_entry = g_texture_cache->Load(i);
if (cache_entry)
{
if (!Common::Contains(texture_names, cache_entry->texture_info_name))