From 274b6894affb2ecd3d53c371c4aebcc294604f00 Mon Sep 17 00:00:00 2001 From: mp3butcher Date: Sun, 19 Aug 2018 22:46:10 +0200 Subject: [PATCH] remove redondant variable and test --- src/osg/Texture.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/osg/Texture.cpp b/src/osg/Texture.cpp index ec3948f1f..f50e5f045 100644 --- a/src/osg/Texture.cpp +++ b/src/osg/Texture.cpp @@ -2310,22 +2310,21 @@ void Texture::applyTexImage2D_load(State& state, GLenum target, const Image* ima int width = inwidth; int height = inheight; - bool useTexStorage = extensions->isTextureStorageEnabled && extensions->isTexStorage2DSupported() && (_borderWidth==0); - GLenum sizedInternalFormat = useTexStorage ? selectSizedInternalFormat(image) : 0; - OSG_NOTICE<<"New path useTexStorage="<