Changeset 491 for trunk/src/gfx


Ignore:
Timestamp:
04/29/16 12:42:28 (9 years ago)
Author:
epyon
Message:
  • mass update (will try to do atomic from now)
Location:
trunk/src/gfx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/debug_draw.cc

    r469 r491  
    2525#version 120
    2626varying vec3 v_color;
     27out vec4 o_frag_color;
    2728void main(void)
    2829{
    29         gl_FragColor = vec4( v_color, 1.0 );
     30        o_frag_color = vec4( v_color, 1.0 );
    3031}
    3132)";
     
    4445                if ( m_va.is_valid() ) m_context->release( m_va );
    4546                m_buffer_size = nv::max( m_data.size(), 4096U, m_buffer_size );
    46                 m_va = m_context->create_vertex_array();
    4747                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 );
    4951        }
    5052        else
  • trunk/src/gfx/mesh_creator.cc

    r487 r491  
    388388        {
    389389        case USHORT: swap_culling_impl< uint16 >( m_idx_channel ); break;
    390         case UINT: swap_culling_impl< uint16 >( m_idx_channel ); break;
     390        case UINT: swap_culling_impl< uint32 >( m_idx_channel ); break;
    391391        default: NV_ASSERT( false, "Swap culling supports only unsigned and unsigned short indices!" ); break;
    392392        }
Note: See TracChangeset for help on using the changeset viewer.