fix DDS mip level loader

main
cosmonaut 2022-05-14 10:31:56 -07:00
parent 2bd88e1dc1
commit dd3fb75905
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ namespace MoonWorks.Graphics
{
for (int j = 0; j < levels; j += 1)
{
var levelWidth = width >> i;
var levelHeight = height >> i;
var levelWidth = width >> j;
var levelHeight = height >> j;
var pixels = reader.ReadBytes(
Texture.CalculateDDSLevelSize(