From f1f03d5f337f41e90a724757f3631bacea3f4387 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Mon, 9 Apr 2001 19:10:00 +0000 Subject: [PATCH] fix bug in previous checkin --- panda/src/dxgsg/dxGraphicsStateGuardian.cxx | 26 ++++----------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx index 06685b2f9b..610a6e4e10 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx @@ -2073,31 +2073,13 @@ draw_tri(const GeomTri *geom) { dps_data.diffuse.lpvData = (VOID*)pConvertedColorArray; dps_data.diffuse.dwStride = sizeof(D3DCOLOR); - // Geom nodes store floats for colors, drawprim requires ARGB dwords - // BUGBUG: eventually this hack every-frame all-colors conversion needs - // to be done only once as part of a vertex buffer - - if(_color_transform_enabled || _alpha_transform_enabled) { - for (int i=0;i