mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
run faster pl0x? ^.^
This commit is contained in:
parent
8371786fb9
commit
8a8316c20a
@ -70,7 +70,7 @@ generate_block(unsigned short mx,
|
||||
// Create vertex data and writers
|
||||
PT(GeomVertexData) vdata = new GeomVertexData(_root.get_name(),
|
||||
GeomVertexFormat::register_format(format), Geom::UH_stream);
|
||||
vdata->set_num_rows((_block_size + 1) * (_block_size + 1));
|
||||
vdata->unclean_set_num_rows((_block_size + 1) * (_block_size + 1));
|
||||
GeomVertexWriter cwriter;
|
||||
if (_has_color_map) {
|
||||
cwriter=GeomVertexWriter(vdata, "color" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user