diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-12-19 21:50:56 -0600 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-12-19 21:51:42 -0600 |
| commit | fcfcf14e071635eeaddb2883dbeec97eef2ec200 (patch) | |
| tree | a4223ecd060aa045aa4d14dd995be572fbc22893 /Source/Core | |
| parent | ae758f489a88b4e6be2a72a6423c6d931bdec3db (diff) | |
VideoCommon: when loading a texture asset, set sampler to linear sampler if the texture type is not defined and the 2d texture is assumed
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/Assets/DirectFilesystemAssetLibrary.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Assets/DirectFilesystemAssetLibrary.cpp b/Source/Core/VideoCommon/Assets/DirectFilesystemAssetLibrary.cpp index 9a749ecec9..ff20d117c2 100644 --- a/Source/Core/VideoCommon/Assets/DirectFilesystemAssetLibrary.cpp +++ b/Source/Core/VideoCommon/Assets/DirectFilesystemAssetLibrary.cpp @@ -13,6 +13,7 @@ #include "VideoCommon/Assets/MaterialAsset.h" #include "VideoCommon/Assets/ShaderAsset.h" #include "VideoCommon/Assets/TextureAsset.h" +#include "VideoCommon/RenderState.h" namespace VideoCommon { @@ -289,6 +290,7 @@ CustomAssetLibrary::LoadInfo DirectFilesystemAssetLibrary::LoadTexture(const Ass } else { + data->m_sampler = RenderState::GetLinearSamplerState(); data->m_type = TextureData::Type::Type_Texture2D; } |
