fix DDS mip level loader
parent
2bd88e1dc1
commit
dd3fb75905
|
@ -96,8 +96,8 @@ namespace MoonWorks.Graphics
|
||||||
{
|
{
|
||||||
for (int j = 0; j < levels; j += 1)
|
for (int j = 0; j < levels; j += 1)
|
||||||
{
|
{
|
||||||
var levelWidth = width >> i;
|
var levelWidth = width >> j;
|
||||||
var levelHeight = height >> i;
|
var levelHeight = height >> j;
|
||||||
|
|
||||||
var pixels = reader.ReadBytes(
|
var pixels = reader.ReadBytes(
|
||||||
Texture.CalculateDDSLevelSize(
|
Texture.CalculateDDSLevelSize(
|
||||||
|
|
Loading…
Reference in New Issue