From b8aa8bfc40a63db60c90b90d7afaa9598f9f9475 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 6 Jul 2004 12:15:03 +0000 Subject: [PATCH] Fixed warning. --- src/osg/Texture.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osg/Texture.cpp b/src/osg/Texture.cpp index c5c5b1b60..b44a330e8 100644 --- a/src/osg/Texture.cpp +++ b/src/osg/Texture.cpp @@ -415,7 +415,8 @@ void Texture::computeInternalFormatWithImage(const osg::Image& image) const } else internalFormat = image.getInternalTextureFormat(); break; - + default: + break; } } @@ -696,6 +697,7 @@ void Texture::applyTexImage2D_load(State& state, GLenum target, const Image* ima // we require mip mapping. if(image->isMipmap()) { + // image is mip mapped so we take the mip map levels from the image. numMipmapLevels = image->getNumMipmapLevels();