Fixing texture storage allocation on OSX/GL 4.1

This commit is contained in:
Bradley Austin Davis 2016-04-22 15:48:18 -07:00
parent f4e4f217e8
commit 407e0c0dd7

View file

@ -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()) {