diff options
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 9ae505ef0d0..962bb0aed22 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -915,7 +915,8 @@ void GPU_paint_update_image(Image *ima, int x, int y, int w, int h) * so we will be using GPU mipmap generation here */ if (GPU_get_mipmap()) { glGenerateMipmapEXT(GL_TEXTURE_2D); - } else { + } + else { ima->tpageflag &= ~IMA_MIPMAP_COMPLETE; } @@ -942,7 +943,8 @@ void GPU_paint_update_image(Image *ima, int x, int y, int w, int h) /* see comment above as to why we are using gpu mipmap generation here */ if (GPU_get_mipmap()) { glGenerateMipmapEXT(GL_TEXTURE_2D); - } else { + } + else { ima->tpageflag &= ~IMA_MIPMAP_COMPLETE; } } |