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

This was caused by rBe749643793809248dfc6ffd078be04aec3eeab82 which
removed the texture repeat from Image texture.
This commit is contained in:
Clément Foucault
2020-09-08 19:54:30 +02:00
parent 637a5c964a
commit f27d5e4f76

View File

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