Game Development Community

[BUG T3D 1.0] Incorrect size of non square DDS textures

by Luis Anton Rebollo · in Torque 3D Professional · 10/03/2009 (5:20 am) · 0 replies

When i try to add a non-square dds texture to a gui control, i get weid result.

I think this change solve this

GFXTextureManager.cpp line 578
ret->mBitmapSize.set( dds->mHeight, dds->mWidth, 0 );

change to:
ret->mBitmapSize.set( dds->mWidth, dds->mHeight, 0 );