From 7009801eb12d8cabd3869357914fa9c01015fdc0 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Fri, 15 Jun 2001 20:35:59 +0000 Subject: [PATCH] adjustment to prev chkin --- panda/src/dxgsg/dxGraphicsStateGuardian.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx index b97f41007c..5cfac45e4a 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx @@ -2314,9 +2314,7 @@ draw_multitri(Geom *geom, D3DPRIMITIVETYPE trilisttype) { GeomVrtFmt=MixedFmtVerts; #endif - if(pLengthArr==NULL) { - assert(geom->get_num_vertices_per_prim()==4); - // we've been called by draw_quad, which has no lengths array + if(!geom->uses_components()) { GeomVrtFmt=MixedFmtVerts; // dont need efficiency here, just use simpler codepath } @@ -2410,7 +2408,7 @@ draw_multitri(Geom *geom, D3DPRIMITIVETYPE trilisttype) { memset(&dps_data,0,sizeof(D3DDRAWPRIMITIVESTRIDEDDATA)); #ifdef _DEBUG -// nassertv(geom->uses_components()); + nassertv(geom->uses_components()); nassertv(geom->get_binding(G_COORD) == G_PER_VERTEX); #endif