From ad32bca94fd1f8f9349088498624c38d0bcf8094 Mon Sep 17 00:00:00 2001 From: flowtron Date: Sun, 17 Apr 2011 14:52:50 +0000 Subject: [PATCH] allow transparent CTF-icons in HUD git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6264 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderhud.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 7aa86803..95c0743f 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -44,6 +44,7 @@ void drawctficon(float x, float y, float s, int col, int row, float ts) if(!ctftex) ctftex = textureload("packages/misc/ctficons.png", 3); if(!htftex) htftex = textureload("packages/misc/htficons.png", 3); if(!ktftex) ktftex = textureload("packages/misc/ktficons.png", 3); + turn_on_transparency(); if(m_htf) { if(htftex) drawicon(htftex, x, y, s, col, row, ts); @@ -56,6 +57,7 @@ void drawctficon(float x, float y, float s, int col, int row, float ts) { if(ctftex) drawicon(ctftex, x, y, s, col, row, ts); } + glDisable(GL_BLEND); } void drawvoteicon(float x, float y, int col, int row, bool noblend)