From 3d54383dd9bdf251cbcf2d0cc80fefde82872342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 14 Jun 2015 10:03:59 -0700 Subject: [PATCH] Fixed shader cache file path. --- examples/07-callback/callback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/07-callback/callback.cpp b/examples/07-callback/callback.cpp index 3caec753..20869984 100644 --- a/examples/07-callback/callback.cpp +++ b/examples/07-callback/callback.cpp @@ -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");