image.gl_touch: wasn't passing the parameters to gl_load
authorDalai Felinto <dfelinto@gmail.com>
Mon, 28 May 2012 18:32:18 +0000 (18:32 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 28 May 2012 18:32:18 +0000 (18:32 +0000)
source/blender/makesrna/intern/rna_image_api.c

index 124a7a7e2b113d9e61775624595ec06258da3138..f84e213bfd0f069b77bb04b58e3fbfb5054e91aa 100644 (file)
@@ -235,7 +235,7 @@ static int rna_Image_gl_touch(Image *image, ReportList *reports, int filter, int
        BKE_image_tag_time(image);
 
        if (*bind == 0)
        BKE_image_tag_time(image);
 
        if (*bind == 0)
-               error = rna_Image_gl_load(image, reports, GL_LINEAR_MIPMAP_NEAREST, GL_LINEAR);
+               error = rna_Image_gl_load(image, reports, filter, mag);
 
        return error;
 }
 
        return error;
 }