]> git.mxchange.org Git - flightgear.git/commitdiff
set blend mode back to make 2D panels opaque when used with transparent HUDs
authormfranz <mfranz>
Sat, 17 Jun 2006 19:09:38 +0000 (19:09 +0000)
committermfranz <mfranz>
Sat, 17 Jun 2006 19:09:38 +0000 (19:09 +0000)
src/Cockpit/hud.cxx

index 693fb00598ccd5ebd42f19d2b780d77607c23a4c..0d016b873e93f02648ffcd5ee257a0aaecd63242 100644 (file)
@@ -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);
 }