diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-01-28 00:26:18 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-01-28 00:26:18 +0400 |
commit | 5a0e2b58c8d90c78477049f9360cb73c8f3c7a23 (patch) | |
tree | a0c2d0b260a12aebd19f3f1bfad6d581c9882410 /source/blender/gpu/intern/gpu_draw.c | |
parent | 0976a780ebc259b740afda528e4f2c0ad4a9b3a2 (diff) |
Activate partial redraw of non-power of two textures. This looks like
it's working as expected out of the box. I hope nothing breaks.
Diffstat (limited to 'source/blender/gpu/intern/gpu_draw.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 63cde9c7d59..80f35d531cd 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -930,8 +930,7 @@ void GPU_paint_update_image(Image *ima, int x, int y, int w, int h) ibuf = BKE_image_acquire_ibuf(ima, NULL, NULL); if (ima->repbind || (GPU_get_mipmap() && !GTS.gpu_mipmap) || !ima->bindcode || !ibuf || - (!is_power_of_2_i(ibuf->x) || !is_power_of_2_i(ibuf->y)) || - (w == 0) || (h == 0)) + (w == 0) || (h == 0)) { /* these cases require full reload still */ GPU_free_image(ima); |