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:
authorJulian Eisel <julian@blender.org>2022-01-17 20:13:54 +0300
committerJulian Eisel <julian@blender.org>2022-01-17 20:26:10 +0300
commit194979e92947524c6257a38ae7bee4b20dc61d9e (patch)
treec78efadde53238ce954ff0b090016ddbe7441005 /source/blender/editors/space_file/file_draw.c
parentaa0ecd17918d5f1c3ce684f8f14b6aa7080ea9e1 (diff)
Cleanup: Improve naming of immediate mode buffer draw functions
Followup to the previous commit. Jeroen and I agreed the old naming was confusing.
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);