From ed279df1c4b251630148ef5c10db325cefd37c2a Mon Sep 17 00:00:00 2001 From: TimeServ Date: Wed, 26 Oct 2005 04:59:21 +0000 Subject: [PATCH] fix to 8-bit SW git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1538 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/sw/d_polyse.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/engine/sw/d_polyse.c b/engine/sw/d_polyse.c index f088b861c..bd8e2b7d2 100644 --- a/engine/sw/d_polyse.c +++ b/engine/sw/d_polyse.c @@ -1158,10 +1158,13 @@ void D_DrawSubdivC (void) #ifdef PEXT_TRANS - if (r_pixbytes == 4) - drawfnc = D_PolysetRecursiveTriangle32Trans; - else if (r_pixbytes == 1) - drawfnc = D_PolysetRecursiveTriangleTrans; + if (transbackfac) + { + if (r_pixbytes == 4) + drawfnc = D_PolysetRecursiveTriangle32Trans; + else if (r_pixbytes == 1) + drawfnc = D_PolysetRecursiveTriangleTrans; + } else #endif drawfnc = D_PolysetRecursiveTriangleC;