Fix T47688: Regression in gl_load

Error caused by 771f73b6
This commit is contained in:
Campbell Barton 2016-03-07 14:31:45 +11:00 committed by Sergey Sharybin
parent 88a3b68610
commit 1e2c8ca6ea
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ static int rna_Image_gl_load(Image *image, ReportList *reports, int frame, int f
return (int)GL_INVALID_OPERATION;
}
GPU_create_gl_tex(bind, ibuf->rect, ibuf->rect_float, GL_TEXTURE_2D, ibuf->x, ibuf->y,
GPU_create_gl_tex(bind, ibuf->rect, ibuf->rect_float, ibuf->x, ibuf->y, GL_TEXTURE_2D,
(filter != GL_NEAREST && filter != GL_LINEAR), false, image);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, (GLint)filter);