1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Don't allow different OpenGL versions to share shader cache.

This commit is contained in:
Francisco Zurita 2016-07-29 10:21:45 -04:00 committed by Sergey Lipskiy
parent 4bcf330759
commit c17b1f2e11

View File

@ -351,7 +351,16 @@ void getStorageFileName(wchar_t * _fileName)
if (osal_mkdirp(strShaderFolderPath) != 0)
pPath = strCacheFolderPath;
}
swprintf(_fileName, PLUGIN_PATH_SIZE, L"%ls/GLideN64.%08lx.shaders", pPath, std::hash<std::string>()(RSP.romname));
#ifdef GLES3
const wchar_t* strOpenGLType = L"GLES3";
#elif GLES3_1
const wchar_t* strOpenGLType = L"GLES3_1";
#else
const wchar_t* strOpenGLType = L"OpenGL";
#endif
swprintf(_fileName, PLUGIN_PATH_SIZE, L"%ls/GLideN64.%08lx.%ls.shaders", pPath, std::hash<std::string>()(RSP.romname), strOpenGLType);
}
u32 CombinerInfo::_getConfigOptionsBitSet() const