Fixed shader cache file path.

This commit is contained in:
Branimir Karadžić 2015-06-14 10:03:59 -07:00
parent b2c22554dd
commit 3d54383dd9

View file

@ -139,7 +139,7 @@ struct BgfxCallback : public bgfx::CallbackI
virtual uint32_t cacheReadSize(uint64_t _id) BX_OVERRIDE
{
char filePath[256];
bx::snprintf(filePath, sizeof(filePath), "%016" PRIx64, _id);
bx::snprintf(filePath, sizeof(filePath), "temp/%016" PRIx64, _id);
// Use cache id as filename.
FILE* file = fopen(filePath, "rb");