From 5e73f0bb3506bd1a5f46aa37541a7b5824769323 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Jun 2016 10:45:48 +0100 Subject: [PATCH] Removed dead code --- src/osg/Texture1D.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/osg/Texture1D.cpp b/src/osg/Texture1D.cpp index 0f3f1ae3b..7ca901412 100644 --- a/src/osg/Texture1D.cpp +++ b/src/osg/Texture1D.cpp @@ -485,11 +485,8 @@ void Texture1D::allocateMipmap(State& state) const // we do not reallocate the level 0, since it was already allocated width >>= 1; - for( GLsizei k = 1; k < numMipmapLevels && width; k++) + for( GLsizei k = 1; k < numMipmapLevels && width; k++) { - if (width == 0) - width = 1; - glTexImage1D( GL_TEXTURE_1D, k, _internalFormat, width, _borderWidth, _sourceFormat ? _sourceFormat : _internalFormat,