[Bf-blender-cvs] [f27d5e4f76f] master: Fix T79538 Grease Pencil: Fill texture doesn't tile anymore

Clément Foucault noreply at git.blender.org
Tue Sep 8 19:57:16 CEST 2020


Commit: f27d5e4f76f7d660235eef6b2c15bd66f33628c2
Author: Clément Foucault
Date:   Tue Sep 8 19:54:30 2020 +0200
Branches: master
https://developer.blender.org/rBf27d5e4f76f7d660235eef6b2c15bd66f33628c2

Fix T79538 Grease Pencil: Fill texture doesn't tile anymore

This was caused by rBe749643793809248dfc6ffd078be04aec3eeab82 which
removed the texture repeat from Image texture.

===================================================================

M	source/blender/blenkernel/intern/image_gpu.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list