From 1b35ff9b855fe48ef197663e50a4f2ac1c630531 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Thu, 25 Jan 2018 19:32:45 -0800 Subject: [PATCH] Use a distinct KTX cache location for GLES --- .../model-networking/src/model-networking/TextureCache.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/model-networking/src/model-networking/TextureCache.cpp b/libraries/model-networking/src/model-networking/TextureCache.cpp index 0a9e5f94a0..07eaede6f1 100644 --- a/libraries/model-networking/src/model-networking/TextureCache.cpp +++ b/libraries/model-networking/src/model-networking/TextureCache.cpp @@ -50,7 +50,11 @@ Q_LOGGING_CATEGORY(trace_resource_parse_image, "trace.resource.parse.image") Q_LOGGING_CATEGORY(trace_resource_parse_image_raw, "trace.resource.parse.image.raw") Q_LOGGING_CATEGORY(trace_resource_parse_image_ktx, "trace.resource.parse.image.ktx") -const std::string TextureCache::KTX_DIRNAME { "ktx_cache" }; +#if defined(USE_GLES) +const std::string TextureCache::KTX_DIRNAME { "ktx_cache_gles" }; +#else +const std::string TextureCache::KTX_DIRNAME{ "ktx_cache" }; +#endif const std::string TextureCache::KTX_EXT { "ktx" }; static const QString RESOURCE_SCHEME = "resource";