From: <wrt...@us...> - 2008-02-21 17:11:49
|
Revision: 8035 http://armagetronad.svn.sourceforge.net/armagetronad/?rev=8035&view=rev Author: wrtlprnft Date: 2008-02-21 09:11:33 -0800 (Thu, 21 Feb 2008) Log Message: ----------- If alpha blending is disabled at least enable the alpha test for rendering rectangular cockpit widgets Modified Paths: -------------- armagetronad/trunk/armagetronad/src/tron/cockpit/cRectangle.cpp Modified: armagetronad/trunk/armagetronad/src/tron/cockpit/cRectangle.cpp =================================================================== --- armagetronad/trunk/armagetronad/src/tron/cockpit/cRectangle.cpp 2008-02-21 15:07:20 UTC (rev 8034) +++ armagetronad/trunk/armagetronad/src/tron/cockpit/cRectangle.cpp 2008-02-21 17:11:33 UTC (rev 8035) @@ -48,7 +48,6 @@ } void Rectangle::Render() { - glDisable(GL_TEXTURE_2D); float val=m_data.GetVal().GetFloat(); float min=m_data.GetMin().GetFloat(); float max=m_data.GetMax().GetFloat(); @@ -60,6 +59,8 @@ m_foreground.SetGradientEdges(edge1, edge2); m_background.SetGradientEdges(edge1, edge2); + glEnable(GL_ALPHA_TEST); + glAlphaFunc(GL_GREATER,0); m_foreground.SetValue(where); m_background.SetValue(where); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |