mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix for windows
This commit is contained in:
parent
dbed74e410
commit
bc7c0698be
@ -2620,9 +2620,9 @@ begin_draw_primitives(const qpGeomVertexData *vertex_data) {
|
|||||||
// the first array.
|
// the first array.
|
||||||
const qpGeomVertexArrayData *data = _vertex_data->get_array(0);
|
const qpGeomVertexArrayData *data = _vertex_data->get_array(0);
|
||||||
|
|
||||||
VertexBufferContext *dc = ((qpGeomVertexArrayData *)data)->prepare_now(get_prepared_objects(), this);
|
VertexBufferContext *vbc = ((qpGeomVertexArrayData *)data)->prepare_now(get_prepared_objects(), this);
|
||||||
nassertr(dc != (VertexBufferContext *)NULL, false);
|
nassertr(vbc != (VertexBufferContext *)NULL, false);
|
||||||
apply_data(dc);
|
apply_vertex_buffer(vbc);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user