run faster pl0x? ^.^

This commit is contained in:
rdb 2010-11-24 20:53:37 +00:00
parent 8371786fb9
commit 8a8316c20a

View File

@ -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" );