From fcfcf14e071635eeaddb2883dbeec97eef2ec200 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Tue, 19 Dec 2023 21:50:56 -0600 Subject: [PATCH] VideoCommon: when loading a texture asset, set sampler to linear sampler if the texture type is not defined and the 2d texture is assumed --- Source/Core/VideoCommon/Assets/DirectFilesystemAssetLibrary.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }