Ignore:
Timestamp:
01/26/16 18:59:46 (9 years ago)
Author:
epyon
Message:
  • massive update (need to start doing atomics again) :/
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_context.cc

    r473 r485  
    354354}
    355355
    356 void nv::gl_context::update( buffer b, uint32 index, const void* data, size_t offset, size_t size )
    357 {
    358         const gl_buffer_info* info = static_cast<const gl_buffer_info*>( m_device->get_buffer_info( b ) );
    359         if ( info )
    360         {
    361                 GLenum glenum = buffer_type_to_enum( info->type );
    362                 if ( size == 0 )
    363                         glBindBufferBase( glenum, index, info->glid );
    364                 else
    365                         glBindBufferRange( glenum, index, info->glid, offset, size );
    366                 glBufferSubData( glenum, GLintptr( offset ), GLsizeiptr( size ), data );
    367         }
    368 }
     356// void nv::gl_context::update( buffer b, uint32 index, const void* data, size_t offset, size_t size )
     357// {
     358//      const gl_buffer_info* info = static_cast<const gl_buffer_info*>( m_device->get_buffer_info( b ) );
     359//      if ( info )
     360//      {
     361//              GLenum glenum = buffer_type_to_enum( info->type );
     362//              if ( size == 0 )
     363//                      glBindBufferBase( glenum, index, info->glid );
     364//              else
     365//                      glBindBufferRange( glenum, index, info->glid, offset, size );
     366//              glBufferSubData( glenum, GLintptr( offset ), GLsizeiptr( size ), data );
     367//      }
     368// }
    369369
    370370void gl_context::update( buffer b, const void* data, nv::size_t offset, nv::size_t size )
Note: See TracChangeset for help on using the changeset viewer.