From fbe13ab84ac73752258ef50110bd562ed1263e5a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 20 Sep 2012 12:29:28 +0000 Subject: style cleanup --- source/blender/gpu/intern/gpu_draw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/gpu') 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; } } -- cgit v1.2.3