mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Fix #119502: Image metadata misses background box
Since 4a78d7dc4c blending is turned ON, but apparently the background
color is not receiving full alpha in this scenario.
Resolve by using immUniformThemeColorAlpha (with 1.0 alpha)
Pull Request: https://projects.blender.org/blender/blender/pulls/119504
This commit is contained in:
parent
9fc8ce49f5
commit
218c02abc4
1 changed files with 2 additions and 2 deletions
|
|
@ -870,7 +870,7 @@ void ED_region_image_metadata_draw(
|
|||
uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
|
||||
immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
|
||||
GPU_blend(GPU_BLEND_ALPHA);
|
||||
immUniformThemeColor(TH_METADATA_BG);
|
||||
immUniformThemeColorAlpha(TH_METADATA_BG, 1.0f);
|
||||
immRectf(pos, rect.xmin, rect.ymin, rect.xmax, rect.ymax);
|
||||
immUnbindProgram();
|
||||
|
||||
|
|
@ -897,7 +897,7 @@ void ED_region_image_metadata_draw(
|
|||
uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
|
||||
immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
|
||||
GPU_blend(GPU_BLEND_ALPHA);
|
||||
immUniformThemeColor(TH_METADATA_BG);
|
||||
immUniformThemeColorAlpha(TH_METADATA_BG, 1.0f);
|
||||
immRectf(pos, rect.xmin, rect.ymin, rect.xmax, rect.ymax);
|
||||
immUnbindProgram();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue