Fix runtime issues,

This commit is contained in:
JuiceyDev
2026-03-05 09:19:40 +01:00
parent d0e7106cdf
commit 5583e04e0f
9 changed files with 169 additions and 44 deletions

View File

@@ -133,7 +133,7 @@ void Texture::_init(const wstring &name, int mode, int width, int height, int de
for(unsigned int level = 1; level < m_iMipLevels; ++level)
{
int ww = width >> level;
int hh = height >> height;
int hh = height >> level;
byteArray tempBytes = byteArray(ww * hh * depth * 4);
for (int index = 0; index < tempBytes.length; index++)