diff options
-rw-r--r-- | src/render/renderers/opengl/textures/gltexture.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/renderers/opengl/textures/gltexture.cpp b/src/render/renderers/opengl/textures/gltexture.cpp index e94122f67..c98e95759 100644 --- a/src/render/renderers/opengl/textures/gltexture.cpp +++ b/src/render/renderers/opengl/textures/gltexture.cpp @@ -381,8 +381,10 @@ QOpenGLTexture *GLTexture::buildGLTexture() glTex->setMipLevels(glTex->maximumMipLevels()); } else { glTex->setAutoMipMapGenerationEnabled(false); - glTex->setMipBaseLevel(0); - glTex->setMipMaxLevel(m_properties.mipLevels - 1); + if (glTex->hasFeature(QOpenGLTexture::TextureMipMapLevel)) { + glTex->setMipBaseLevel(0); + glTex->setMipMaxLevel(m_properties.mipLevels - 1); + } glTex->setMipLevels(m_properties.mipLevels); } |