Fix #33376: non-square DDS textures were mapped wrong in the viewport / game engine.

This commit is contained in:
Brecht Van Lommel
2012-12-02 08:25:53 +00:00
parent b8d822eb35
commit 6b03e9bc47

View File

@@ -721,8 +721,8 @@ int GPU_upload_dxt_texture(ImBuf *ibuf)
GLint format = 0;
int blocksize, height, width, i, size, offset = 0;
height = ibuf->x;
width = ibuf->y;
width = ibuf->x;
height = ibuf->y;
if (GLEW_EXT_texture_compression_s3tc) {
if (ibuf->dds_data.fourcc == FOURCC_DXT1)