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:
authorClément Foucault <foucault.clem@gmail.com>2020-08-16 17:48:21 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-18 22:30:10 +0300
commit298329554a5a0ae40bc4a64ca9c1490d22edc947 (patch)
treec472a8a8f711e4de331b6cedafb9adc74014becd /source/blender/editors/space_image/image_draw.c
parentbf1b622dd962416fef94ccb2f47878eced31e20d (diff)
Cleanup: GPUState: remove double GPU_blend calls
Diffstat (limited to 'source/blender/editors/space_image/image_draw.c')
-rw-r--r--source/blender/editors/space_image/image_draw.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index 6b79151da3f..d58f5ede7d7 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -176,7 +176,6 @@ void ED_image_draw_info(Scene *scene,
float col[4], finalcol[4];
GPU_blend(GPU_BLEND_ALPHA);
- GPU_blend(GPU_BLEND_ALPHA);
uint pos = GPU_vertformat_attr_add(
immVertexFormat(), "pos", GPU_COMP_I32, 2, GPU_FETCH_INT_TO_FLOAT);
@@ -540,7 +539,6 @@ static void draw_udim_label(ARegion *region, float fx, float fy, const char *lab
UI_view2d_view_to_region(&region->v2d, fx, fy, &x, &y);
GPU_blend(GPU_BLEND_ALPHA);
- GPU_blend(GPU_BLEND_ALPHA);
int textwidth = BLF_width(blf_mono_font, label, strlen(label)) + 10;
float stepx = BLI_rcti_size_x(&region->v2d.mask) / BLI_rctf_size_x(&region->v2d.cur);
@@ -601,7 +599,6 @@ static void draw_image_buffer(const bContext *C,
imm_draw_box_checker_2d(x, y, x + ibuf->x * zoomx, y + ibuf->y * zoomy);
GPU_blend(GPU_BLEND_ALPHA);
- GPU_blend(GPU_BLEND_ALPHA);
}
/* If RGBA display with color management */
@@ -769,7 +766,6 @@ static void draw_image_paint_helpers(
}
GPU_blend(GPU_BLEND_ALPHA);
- GPU_blend(GPU_BLEND_ALPHA);
IMMDrawPixelsTexState state = immDrawPixelsTexSetup(GPU_SHADER_2D_IMAGE_COLOR);
immDrawPixelsTex(
@@ -1055,7 +1051,6 @@ void draw_image_cache(const bContext *C, ARegion *region)
const int region_bottom = rect_visible->ymin;
GPU_blend(GPU_BLEND_ALPHA);
- GPU_blend(GPU_BLEND_ALPHA);
/* Draw cache background. */
ED_region_cache_draw_background(region);