From 01c6d4f448068faf9e11fcbf432a61afe6ff21a7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 12 Jun 2009 09:48:59 +0000 Subject: [PATCH] From Konstantin Sinitsyn, "I've fixed bug with loading of compressed texture to texture array!" --- src/osg/Texture2DArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Texture2DArray.cpp b/src/osg/Texture2DArray.cpp index f6dbaaa7d..0b65eb922 100644 --- a/src/osg/Texture2DArray.cpp +++ b/src/osg/Texture2DArray.cpp @@ -420,7 +420,7 @@ void Texture2DArray::applyTexImage2DArray_subload(State& state, Image* image, GL numMipmapLevels = 1; GLint blockSize, size; - getCompressedSize(_internalFormat, inwidth, inheight, indepth, blockSize,size); + getCompressedSize(_internalFormat, inwidth, inheight, 1, blockSize,size); extensions->glCompressedTexSubImage3D(target, 0, 0, 0, indepth,