Fix typo inside C3D_TexInitWithParams()
This commit is contained in:
parent
2062eff21d
commit
145cea4e89
@ -67,7 +67,7 @@ bool C3D_TexInitWithParams(C3D_Tex* tex, C3D_TexCube* cube, C3D_TexInitParams p)
|
|||||||
u32 size = fmtSize(p.format);
|
u32 size = fmtSize(p.format);
|
||||||
if (!size) return false;
|
if (!size) return false;
|
||||||
size *= (u32)p.width * p.height / 8;
|
size *= (u32)p.width * p.height / 8;
|
||||||
u32 total_size = C3D_TexCalcLevelSize(size, p.maxLevel);
|
u32 total_size = C3D_TexCalcTotalSize(size, p.maxLevel);
|
||||||
|
|
||||||
if (!isCube)
|
if (!isCube)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user