Changeset 491 for trunk/src/gfx
- Timestamp:
- 04/29/16 12:42:28 (9 years ago)
- Location:
- trunk/src/gfx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/debug_draw.cc
r469 r491 25 25 #version 120 26 26 varying vec3 v_color; 27 out vec4 o_frag_color; 27 28 void main(void) 28 29 { 29 gl_FragColor = vec4( v_color, 1.0 );30 o_frag_color = vec4( v_color, 1.0 ); 30 31 } 31 32 )"; … … 44 45 if ( m_va.is_valid() ) m_context->release( m_va ); 45 46 m_buffer_size = nv::max( m_data.size(), 4096U, m_buffer_size ); 46 m_va = m_context->create_vertex_array();47 47 m_vb = m_context->get_device()->create_buffer( VERTEX_BUFFER, nv::STREAM_DRAW, m_buffer_size * sizeof( debug_vtx ), m_data.data() ); 48 m_context->add_vertex_buffers< debug_vtx >( m_va, m_vb, true ); 48 vertex_array_desc va_desc; 49 va_desc.add_vertex_buffers< debug_vtx >( m_vb, true ); 50 m_va = m_context->create_vertex_array( va_desc ); 49 51 } 50 52 else -
trunk/src/gfx/mesh_creator.cc
r487 r491 388 388 { 389 389 case USHORT: swap_culling_impl< uint16 >( m_idx_channel ); break; 390 case UINT: swap_culling_impl< uint 16>( m_idx_channel ); break;390 case UINT: swap_culling_impl< uint32 >( m_idx_channel ); break; 391 391 default: NV_ASSERT( false, "Swap culling supports only unsigned and unsigned short indices!" ); break; 392 392 }
Note: See TracChangeset
for help on using the changeset viewer.