mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-02 15:11:35 +00:00
Ignore invalid shader cache index (Bug #1664)
This commit is contained in:
parent
8c81e22f3e
commit
d7acb7fc7d
1 changed files with 19 additions and 11 deletions
8
extern/shiny/Main/Factory.cpp
vendored
8
extern/shiny/Main/Factory.cpp
vendored
|
@ -51,6 +51,8 @@ namespace sh
|
||||||
{
|
{
|
||||||
assert(mCurrentLanguage != Language_None);
|
assert(mCurrentLanguage != Language_None);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
if (boost::filesystem::exists (mPlatform->getCacheFolder () + "/lastModified.txt"))
|
if (boost::filesystem::exists (mPlatform->getCacheFolder () + "/lastModified.txt"))
|
||||||
{
|
{
|
||||||
std::ifstream file;
|
std::ifstream file;
|
||||||
|
@ -69,6 +71,12 @@ namespace sh
|
||||||
mShadersLastModified[sourceFile] = modified;
|
mShadersLastModified[sourceFile] = modified;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (std::exception& e)
|
||||||
|
{
|
||||||
|
std::cerr << "Failed to load shader modification index: " << e.what() << std::endl;
|
||||||
|
mShadersLastModified.clear();
|
||||||
|
}
|
||||||
|
|
||||||
// load configurations
|
// load configurations
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue