Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r--source/blender/editors/space_file/file_draw.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index dd1b4e10e60..9f18f6d1443 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -403,19 +403,19 @@ static void file_draw_preview(const SpaceFile *sfile,
}
IMMDrawPixelsTexState state = immDrawPixelsTexSetup(GPU_SHADER_2D_IMAGE_COLOR);
- immDrawPixelsTexScaled(&state,
- (float)xco,
- (float)yco,
- imb->x,
- imb->y,
- GPU_RGBA8,
- true,
- imb->rect,
- scale,
- scale,
- 1.0f,
- 1.0f,
- col);
+ immDrawPixelsTexTiled_scaling(&state,
+ (float)xco,
+ (float)yco,
+ imb->x,
+ imb->y,
+ GPU_RGBA8,
+ true,
+ imb->rect,
+ scale,
+ scale,
+ 1.0f,
+ 1.0f,
+ col);
GPU_blend(GPU_BLEND_ALPHA);