Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-24 15:09:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-24 15:10:43 +0300
commita699a9680bf88cef76fcf6be89d62bdeb532bd4c (patch)
tree728173ce40b90f16e3830bb3fe7276ade4a9b98e /source/blender/gpu/intern/gpu_draw.c
parentd51b74f9e3de4379dc675e08df8766b37105ee0e (diff)
Fix T65812: Image empty has wrong aspect with limit texture size
Diffstat (limited to 'source/blender/gpu/intern/gpu_draw.c')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index 9a341631833..d1d5e1d89a2 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -501,6 +501,9 @@ GPUTexture *GPU_texture_from_blender(Image *ima, ImageUser *iuser, int textarget
BKE_image_release_ibuf(ima, ibuf, NULL);
*tex = GPU_texture_from_bindcode(textarget, bindcode);
+
+ GPU_texture_orig_size_set(*tex, ibuf->x, ibuf->y);
+
return *tex;
}