Changeset 313 for trunk/src/gfx/particle_engine.cc
- Timestamp:
- 08/18/14 23:25:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/particle_engine.cc
r312 r313 485 485 info->particles = new particle[ data->quota ]; 486 486 info->quads = new particle_quad[ data->quota ]; 487 info->vtx_array = m_ device->create_vertex_array<particle_vtx>(487 info->vtx_array = m_context->create_vertex_array<particle_vtx>( 488 488 (particle_vtx*)info->quads, data->quota*6, STREAM_DRAW ); 489 info->vtx_buffer = m_ device->find_buffer( info->vtx_array, slot::POSITION );489 info->vtx_buffer = m_context->find_buffer( info->vtx_array, slot::POSITION ); 490 490 info->last_update = 0; 491 491 info->test = false; … … 519 519 delete[] info->quads; 520 520 //if ( system->own_va ) 521 m_ device->release( info->vtx_array );521 m_context->release( info->vtx_array ); 522 522 m_systems.destroy( system ); 523 523 }
Note: See TracChangeset
for help on using the changeset viewer.