Changeset 342 for trunk/src/gl


Ignore:
Timestamp:
10/09/14 02:55:38 (11 years ago)
Author:
epyon
Message:
  • gl_context - set_draw_buffers accepts const
  • gl_context - set_draw_buffers with 1 buffer behaves like set_draw_buffer
  • camera - holds viewport info (does not set it, should it?)
  • clear_state - NONE added
  • device/uniform - nv_v_viewport & nv_v_screen_size built-ins added
File:
1 edited

Legend:

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

    r335 r342  
    719719}
    720720
    721 void nv::gl_context::set_draw_buffers( uint32 count, output_slot* slots )
    722 {
     721void nv::gl_context::set_draw_buffers( uint32 count, const output_slot* slots )
     722{
     723        if ( count == 0 ) return;
     724        if ( count == 1 )
     725        {
     726                set_draw_buffer( slots[0] );
     727                return;
     728        }
    723729        unsigned int buffers[8];
    724730        count = glm::min<uint32>( count, 8 );
Note: See TracChangeset for help on using the changeset viewer.