fix transparent icon
This commit is contained in:
parent
9d88830365
commit
970cbbd132
1 changed files with 2 additions and 3 deletions
|
@ -3828,9 +3828,8 @@ void GLGizmoEmboss::draw_transparent_icon()
|
||||||
size_uv.x/icon.size.x,
|
size_uv.x/icon.size.x,
|
||||||
size_uv.y/icon.size.y);
|
size_uv.y/icon.size.y);
|
||||||
// reduce uv coors to one pixel
|
// reduce uv coors to one pixel
|
||||||
icon.br = ImVec2(
|
icon.tl = ImVec2(0, 0);
|
||||||
icon.tl.x + one_px.x,
|
icon.br = one_px;
|
||||||
icon.tl.y + one_px.y);
|
|
||||||
IconManager::draw(icon);
|
IconManager::draw(icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue