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:
authorClément Foucault <foucault.clem@gmail.com>2020-09-08 20:54:30 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-08 20:54:30 +0300
commitf27d5e4f76f7d660235eef6b2c15bd66f33628c2 (patch)
tree9198cd9395513aa9c57601a378d367ae11d62fb4
parent637a5c964a01f5e8733e972cb8a30341eb91058e (diff)
Fix T79538 Grease Pencil: Fill texture doesn't tile anymore
This was caused by rBe749643793809248dfc6ffd078be04aec3eeab82 which removed the texture repeat from Image texture.
-rw-r--r--source/blender/blenkernel/intern/image_gpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image_gpu.c b/source/blender/blenkernel/intern/image_gpu.c
index 8b6bd47a0db..d4a1c1e2c46 100644
--- a/source/blender/blenkernel/intern/image_gpu.c
+++ b/source/blender/blenkernel/intern/image_gpu.c
@@ -320,6 +320,8 @@ static GPUTexture *image_get_gpu_texture(Image *ima,
*tex = IMB_create_gpu_texture(
ima->id.name + 2, ibuf_intern, use_high_bitdepth, store_premultiplied);
+ GPU_texture_wrap_mode(*tex, true, false);
+
if (GPU_mipmap_enabled()) {
GPU_texture_generate_mipmap(*tex);
if (ima) {