From bc7c0698be6e69a3f411a0a3117cf53e74cafe77 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 18 Mar 2005 20:46:45 +0000 Subject: [PATCH] fix for windows --- panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx index b2e432dbdb..6e55da86fe 100644 --- a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx +++ b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx @@ -2620,9 +2620,9 @@ begin_draw_primitives(const qpGeomVertexData *vertex_data) { // the first array. const qpGeomVertexArrayData *data = _vertex_data->get_array(0); - VertexBufferContext *dc = ((qpGeomVertexArrayData *)data)->prepare_now(get_prepared_objects(), this); - nassertr(dc != (VertexBufferContext *)NULL, false); - apply_data(dc); + VertexBufferContext *vbc = ((qpGeomVertexArrayData *)data)->prepare_now(get_prepared_objects(), this); + nassertr(vbc != (VertexBufferContext *)NULL, false); + apply_vertex_buffer(vbc); return true; }