From dd3fb75905c7b569b2ca63f5b1854c6ffe5174ef Mon Sep 17 00:00:00 2001
From: cosmonaut <evan@moonside.games>
Date: Sat, 14 May 2022 10:31:56 -0700
Subject: [PATCH] fix DDS mip level loader

---
 src/Graphics/Resources/Texture.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Graphics/Resources/Texture.cs b/src/Graphics/Resources/Texture.cs
index 7c86520b..355ba5f2 100644
--- a/src/Graphics/Resources/Texture.cs
+++ b/src/Graphics/Resources/Texture.cs
@@ -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(