From c21fe00cfcdb6d0fbf056884915e7dee0a2b6c74 Mon Sep 17 00:00:00 2001 From: samcake Date: Fri, 28 Oct 2016 11:40:10 -0700 Subject: [PATCH] Avoid messaging for render targets --- libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp b/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp index a11e486f2b..621c619954 100644 --- a/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp @@ -322,7 +322,9 @@ void GL45Texture::withPreservedTexture(std::function f) const { } void GL45Texture::generateMips() const { - qCDebug(gpugl45logging) << "Generating mipmaps for " << _source.c_str(); + if (_transferrable) { + qCDebug(gpugl45logging) << "Generating mipmaps for " << _source.c_str(); + } glGenerateTextureMipmap(_id); (void)CHECK_GL_ERROR(); }