.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
|
@ -5146,12 +5146,12 @@ qboolean Image_WriteKTXFile(const char *filename, enum fs_relative fsroot, struc
|
||||||
case PTI_ANY:
|
case PTI_ANY:
|
||||||
VFS_CLOSE(file);
|
VFS_CLOSE(file);
|
||||||
return false;
|
return false;
|
||||||
case PTI_2D:
|
case PTI_CUBE: //special case, size is per-face
|
||||||
case PTI_2D_ARRAY:
|
|
||||||
case PTI_CUBE:
|
|
||||||
case PTI_CUBE_ARRAY:
|
|
||||||
sz = (browbytes+padbytes) * brows;
|
sz = (browbytes+padbytes) * brows;
|
||||||
break;
|
break;
|
||||||
|
case PTI_2D:
|
||||||
|
case PTI_2D_ARRAY:
|
||||||
|
case PTI_CUBE_ARRAY:
|
||||||
case PTI_3D:
|
case PTI_3D:
|
||||||
sz = (browbytes+padbytes) * brows * blayers;
|
sz = (browbytes+padbytes) * brows * blayers;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue