diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-09-06 00:16:26 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-10-10 09:58:14 -0500 |
| commit | 0e8f8ea930d4b635fd7287f572dc2911996638bf (patch) | |
| tree | 68b2ea7ddcff5beda8c1b3f02ef55e3d8e5e369d /Source/Core/VideoCommon/HiresTextures.cpp | |
| parent | 1b7a590b4bb7d34152178e4768d453b40a4118ff (diff) | |
VideoCommon: instead of using 'CustomTextureData' directly, use 'TextureData' for texture assets, this allows us to provide additional metadata for textures. Such as a sampler or type information (to distinguish cube maps)
Diffstat (limited to 'Source/Core/VideoCommon/HiresTextures.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/HiresTextures.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp index 6a489973a5..2f5fd93709 100644 --- a/Source/Core/VideoCommon/HiresTextures.cpp +++ b/Source/Core/VideoCommon/HiresTextures.cpp @@ -130,8 +130,8 @@ void HiresTexture::Update() { // Since this is just a texture (single file) the mapper doesn't really matter // just provide a string - s_file_library->SetAssetIDMapData( - filename, std::map<std::string, std::filesystem::path>{{"", StringToPath(path)}}); + s_file_library->SetAssetIDMapData(filename, std::map<std::string, std::filesystem::path>{ + {"texture", StringToPath(path)}}); if (g_ActiveConfig.bCacheHiresTextures) { |
