From 2ec23a6e294851dabae11f95327ed9b6067d97e8 Mon Sep 17 00:00:00 2001 From: "Alejandro V. Garcia" Date: Fri, 15 Feb 2013 08:43:48 +0000 Subject: [PATCH] revert git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7208 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendermodel.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index bf3ec34d..dfb4aa3b 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -226,8 +226,7 @@ void renderbatchedmodel(model *m, batchedmodel &b) m->setskin(b.tex); - //if(b.anim&ANIM_TRANSLUCENT) - if(b.anim&ANIM_TRANSLUCENT || m->alphablend) //ALX Alpha channel models + if(b.anim&ANIM_TRANSLUCENT) { glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); m->render(b.anim|ANIM_NOSKIN, b.varseed, b.speed, b.basetime, b.o, b.yaw, b.pitch, b.d, a, b.scale); @@ -244,8 +243,7 @@ void renderbatchedmodel(model *m, batchedmodel &b) m->render(b.anim, b.varseed, b.speed, b.basetime, b.o, b.yaw, b.pitch, b.d, a, b.scale); - //if(b.anim&ANIM_TRANSLUCENT) - if(b.anim&ANIM_TRANSLUCENT || m->alphablend) //ALX Alpha channel models + if(b.anim&ANIM_TRANSLUCENT) { glDepthFunc(GL_LESS); glDisable(GL_BLEND); @@ -313,8 +311,8 @@ void endmodelbatches(bool flush) loopvj(b.batched) { batchedmodel &bm = b.batched[j]; - //if(bm.anim&ANIM_TRANSLUCENT) - if(bm.anim&ANIM_TRANSLUCENT || b.m->alphablend) //ALX Alpha channel models + + if(bm.anim&ANIM_TRANSLUCENT) { translucentmodel &tm = translucent.add(); tm.m = b.m;