.ktx 2darray textures were being written incorrectly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6260 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
eb95a933de
commit
6bd79c8ff8
1 changed files with 4 additions and 4 deletions
|
@ -5146,12 +5146,12 @@ qboolean Image_WriteKTXFile(const char *filename, enum fs_relative fsroot, struc
|
|||
case PTI_ANY:
|
||||
VFS_CLOSE(file);
|
||||
return false;
|
||||
case PTI_2D:
|
||||
case PTI_2D_ARRAY:
|
||||
case PTI_CUBE:
|
||||
case PTI_CUBE_ARRAY:
|
||||
case PTI_CUBE: //special case, size is per-face
|
||||
sz = (browbytes+padbytes) * brows;
|
||||
break;
|
||||
case PTI_2D:
|
||||
case PTI_2D_ARRAY:
|
||||
case PTI_CUBE_ARRAY:
|
||||
case PTI_3D:
|
||||
sz = (browbytes+padbytes) * brows * blayers;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue