FileSystem: Swap vector for DynamicHeapArray
No point zeroing it out.
This commit is contained in:
@@ -1108,7 +1108,7 @@ bool PostProcessing::ReShadeFXShader::CreatePasses(GPUTexture::Format backbuffer
|
||||
{
|
||||
// Might be a base file/resource instead.
|
||||
const std::string resource_name = Path::Combine("shaders/reshade/Textures", source);
|
||||
if (std::optional<std::vector<u8>> resdata = Host::ReadResourceFile(resource_name.c_str(), true);
|
||||
if (std::optional<DynamicHeapArray<u8>> resdata = Host::ReadResourceFile(resource_name.c_str(), true);
|
||||
!resdata.has_value() || !image.LoadFromBuffer(resource_name.c_str(), resdata->data(), resdata->size()))
|
||||
{
|
||||
Error::SetString(error, fmt::format("Failed to load image '{}' (from '{}')", source, image_path).c_str());
|
||||
|
||||
Reference in New Issue
Block a user