From ba3abc7b510fe0a5f671958ddba99f6bcc00f86f Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 23 Sep 2016 10:41:17 -0700 Subject: [PATCH] Fix warnings --- libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp b/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp index 1b5013beb2..7a86e4f3a2 100644 --- a/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp @@ -491,7 +491,8 @@ void GL45Texture::stripToMip(uint16_t newMinMip) { syncSampler(); size_t oldSize = _size; updateSize(); - assert(_size > oldSize); + Q_ASSERT(_size > oldSize); + // Re-insert into the texture-by-mips map if appropriate mipLevels = usedMipLevels();