Activate partial redraw of non-power of two textures. This looks like
authorAntony Riakiotakis <kalast@gmail.com>
Sun, 27 Jan 2013 20:26:18 +0000 (20:26 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Sun, 27 Jan 2013 20:26:18 +0000 (20:26 +0000)
it's working as expected out of the box. I hope nothing breaks.

source/blender/gpu/intern/gpu_draw.c

index 63cde9c7d5947c0d3e2b56f681917da7a1ddfe24..80f35d531cdb9e959e9c23ee8e9699f66cc3f726 100644 (file)
@@ -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);