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:
committed by
Philipp Oeser
parent
9fc8ce49f5
commit
218c02abc4
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user