set blend mode back to make 2D panels opaque when used with transparent HUDs
This commit is contained in:
parent
2360487b19
commit
ef2bc6227a
1 changed files with 3 additions and 0 deletions
|
@ -547,6 +547,9 @@ void drawHUD()
|
|||
//glLineWidth(1.0);
|
||||
}
|
||||
|
||||
if (HUDprop->isTransparent())
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glEnable(GL_LIGHTING);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue