From ef2bc6227a5a457908aa44965410170633b390a8 Mon Sep 17 00:00:00 2001
From: mfranz <mfranz>
Date: Sat, 17 Jun 2006 19:09:38 +0000
Subject: [PATCH] set blend mode back to make 2D panels opaque when used with
 transparent HUDs

---
 src/Cockpit/hud.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Cockpit/hud.cxx b/src/Cockpit/hud.cxx
index 693fb0059..0d016b873 100644
--- a/src/Cockpit/hud.cxx
+++ b/src/Cockpit/hud.cxx
@@ -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);
 }