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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-02-06 12:48:09 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-02-06 12:48:09 +0300
commit18e67813cd1b315f77fb194476b357a0e377e6d5 (patch)
treecd11501c1f8d7fa08c69846c3f67b7646729269e /source/blender/editors/space_clip/clip_draw.c
parentf3cc63634a0c5e8ad4d20b635970a544dbf12a45 (diff)
Clip editor: Fix drawing metadata for RGBA images
Need to disable blending prior to drawing metadata. Otherwise text will be drawn on a transparent background.
Diffstat (limited to 'source/blender/editors/space_clip/clip_draw.c')
-rw-r--r--source/blender/editors/space_clip/clip_draw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_clip/clip_draw.c b/source/blender/editors/space_clip/clip_draw.c
index dd9fbef8649..eb0e9bcf8d8 100644
--- a/source/blender/editors/space_clip/clip_draw.c
+++ b/source/blender/editors/space_clip/clip_draw.c
@@ -320,14 +320,15 @@ static void draw_movieclip_buffer(const bContext *C, SpaceClip *sc, ARegion *ar,
glaDrawImBuf_glsl_ctx(C, ibuf, x, y, filter, zoomx * width / ibuf->x, zoomy * height / ibuf->y);
+ if (ibuf->planes == 32) {
+ GPU_blend(false);
+ }
+
if (sc->flag & SC_SHOW_METADATA) {
rctf frame;
BLI_rctf_init(&frame, 0.0f, ibuf->x, 0.0f, ibuf->y);
ED_region_image_metadata_draw(x, y, ibuf, &frame, zoomx * width / ibuf->x, zoomy * height / ibuf->y);
}
-
- if (ibuf->planes == 32)
- GPU_blend(false);
}
static void draw_stabilization_border(SpaceClip *sc, ARegion *ar, int width, int height, float zoomx, float zoomy)