mirror of
https://github.com/libretro/parallel-gx1.git
synced 2026-11-07 04:26:01 -10:00
libretro: fix shader cache when changing supportsBindingLayout option
This commit is contained in:
1 parent
91209a946f
commit
492f485c67
1 file changed
+7
@@ -90,6 +90,13 @@ std::string GetDiskShaderCacheFileName(APIType api_type, const char* type, bool
|
||||
// We're using 21 bits, so 6 hex characters.
|
||||
ShaderHostConfig host_config = ShaderHostConfig::GetCurrent();
|
||||
filename += fmt::format("-{:06X}", host_config.bits);
|
||||
|
||||
#if defined(__LIBRETRO__) && defined(__WEBOS__)
|
||||
// The webOS core option toggles binding layout, which changes the
|
||||
// generated GLSL
|
||||
if (g_backend_info.bSupportsBindingLayout)
|
||||
filename += "-bl";
|
||||
#endif
|
||||
}
|
||||
|
||||
filename += ".cache";
|
||||
|
||||
Reference in new issue
Block a user