From e6f23d6ffd3b9eb8f0a84f3833c9ae25fc1b12db Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 23 Sep 2016 10:43:56 -0700 Subject: [PATCH] Disable sparse textures on non-Windows systems --- libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp b/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp index 7a86e4f3a2..2489f79c0b 100644 --- a/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp @@ -25,8 +25,12 @@ using namespace gpu; using namespace gpu::gl; using namespace gpu::gl45; +#ifdef Q_OS_WIN static const QString DEBUG_FLAG("HIFI_DISABLE_SPARSE_TEXTURES"); static bool enableSparseTextures = !QProcessEnvironment::systemEnvironment().contains(DEBUG_FLAG); +#else +static bool enableSparseTextures = false; +#endif // Allocate 1 MB of buffer space for paged transfers #define DEFAULT_PAGE_BUFFER_SIZE (1024*1024)