From 407e0c0dd74fa260a08de6e05e2c48bdd7ca2c46 Mon Sep 17 00:00:00 2001 From: Bradley Austin Davis Date: Fri, 22 Apr 2016 15:48:18 -0700 Subject: [PATCH] Fixing texture storage allocation on OSX/GL 4.1 --- libraries/gpu/src/gpu/GLBackendTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/gpu/src/gpu/GLBackendTexture.cpp b/libraries/gpu/src/gpu/GLBackendTexture.cpp index 363e4a8f38..609451bd13 100755 --- a/libraries/gpu/src/gpu/GLBackendTexture.cpp +++ b/libraries/gpu/src/gpu/GLBackendTexture.cpp @@ -243,7 +243,7 @@ void GLBackend::GLTexture::allocateStorage() { glTexStorage2D(_target, usedMipLevels(), texelFormat.internalFormat, dimensions.x, dimensions.y); (void)CHECK_GL_ERROR(); } else { - for (uint16_t l = _minMip; l < _maxMip; l++) { + for (uint16_t l = _minMip; l <= _maxMip; l++) { // Get the mip level dimensions, accounting for the downgrade level Vec3u dimensions = _gpuTexture.evalMipDimensions(l); for (GLenum target : getFaceTargets()) {