diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-20 16:29:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-20 16:29:28 +0400 |
commit | fbe13ab84ac73752258ef50110bd562ed1263e5a (patch) | |
tree | cdcc17209ae1f93f40cd09f6e4d16ee1e4044e9a /source/blender/gpu/intern | |
parent | 8771c9e2feb70111da56ac6494fbce1f9f924713 (diff) |
style cleanup
Diffstat (limited to 'source/blender/gpu/intern')
-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; } } |