diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-02 12:25:53 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-02 12:25:53 +0400 |
commit | 6b03e9bc4720c8fc9e0aabd8ceea18792c2bde2c (patch) | |
tree | 0d9299c3dd30f4eba8ed4bf9b77426baf27a7012 | |
parent | b8d822eb354a593584aa382d716cec8dd197aeb8 (diff) |
Fix #33376: non-square DDS textures were mapped wrong in the viewport / game engine.
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |