From Konstantin Sinitsyn, "I've fixed bug with loading of compressed texture to texture array!"

This commit is contained in:
Robert Osfield
2009-06-12 09:48:59 +00:00
parent fac2ffecb3
commit 01c6d4f448

View File

@@ -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,