Index: /OpenSceneGraph/trunk/src/osg/Texture2DArray.cpp
===================================================================
--- /OpenSceneGraph/trunk/src/osg/Texture2DArray.cpp (revision 9062)
+++ /OpenSceneGraph/trunk/src/osg/Texture2DArray.cpp (revision 10337)
@@ -421,5 +421,5 @@
 
             GLint blockSize, size;
-            getCompressedSize(_internalFormat, inwidth, inheight, indepth, blockSize,size);
+            getCompressedSize(_internalFormat, inwidth, inheight, 1, blockSize,size);
 
             extensions->glCompressedTexSubImage3D(target, 0,
