image.gl_touch: wasn't passing the parameters to gl_load
[blender.git] / 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)
-               error = rna_Image_gl_load(image, reports, GL_LINEAR_MIPMAP_NEAREST, GL_LINEAR);
+               error = rna_Image_gl_load(image, reports, filter, mag);
 
        return error;
 }