From 39a78e075ff2826c40007405645e9cf7a1b8ac68 Mon Sep 17 00:00:00 2001 From: valid-ptr Date: Fri, 4 Dec 2020 18:26:21 +0300 Subject: [PATCH] isTextureLODBiasSupported check added --- src/osg/Texture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osg/Texture.cpp b/src/osg/Texture.cpp index 9cdaa1b27..7605083d8 100644 --- a/src/osg/Texture.cpp +++ b/src/osg/Texture.cpp @@ -2216,7 +2216,8 @@ void Texture::applyTexParameters(GLenum target, State& state) const glTexParameterf(target, GL_TEXTURE_MAX_LOD, _maxlod); } - glTexParameterf(target, GL_TEXTURE_LOD_BIAS, _lodbias); + if (extensions->isTextureLODBiasSupported) + glTexParameterf(target, GL_TEXTURE_LOD_BIAS, _lodbias); getTextureParameterDirty(state.getContextID()) = false;