mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
GPUDevice: Fix initial pipeline cache not being created
This commit is contained in:
parent
2d40ddaf33
commit
e8eac9f3a8
|
@ -515,8 +515,9 @@ std::string GPUDevice::GetShaderCacheBaseName(std::string_view type) const
|
||||||
|
|
||||||
bool GPUDevice::OpenPipelineCache(const std::string& filename)
|
bool GPUDevice::OpenPipelineCache(const std::string& filename)
|
||||||
{
|
{
|
||||||
if (FileSystem::GetPathFileSize(filename.c_str()) <= 0)
|
// Let it create if it does not exist.
|
||||||
return false;
|
if (!FileSystem::FileExists(filename.c_str()))
|
||||||
|
return true;
|
||||||
|
|
||||||
Error error;
|
Error error;
|
||||||
CompressHelpers::OptionalByteBuffer data =
|
CompressHelpers::OptionalByteBuffer data =
|
||||||
|
|
Loading…
Reference in a new issue