From 6b03e9bc4720c8fc9e0aabd8ceea18792c2bde2c Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 2 Dec 2012 08:25:53 +0000 Subject: Fix #33376: non-square DDS textures were mapped wrong in the viewport / game engine. --- source/blender/gpu/intern/gpu_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/gpu/intern') diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index f2ddedcd76c..bcdbfe781f8 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -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) -- cgit v1.2.3