From d2e5cac1ef7aca26c8d2a6d4f23b1b5e28d32237 Mon Sep 17 00:00:00 2001 From: flowtron Date: Mon, 2 Aug 2010 20:21:57 +0000 Subject: [PATCH] _really_ turn on transparency git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5524 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/renderhud.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 8d8d78c1..f9f5b044 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -9,6 +9,7 @@ void drawicon(Texture *tex, float x, float y, float s, int col, int row, float t inline void turn_on_transparency() { + glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glColor4ub(255, 255, 255, 255); } @@ -19,10 +20,8 @@ void drawequipicon(float x, float y, int col, int row, float blend) if(!tex) tex = textureload("packages/misc/items.png", 4); if(tex) { - //if(blend||transparency) glEnable(GL_BLEND); if(transparency) turn_on_transparency(); drawicon(tex, x, y, 120, col, row, 1/4.0f); - //if(blend||transparency) glDisable(GL_BLEND); } }