Ignore:
Timestamp:
05/28/13 16:48:29 (12 years ago)
Author:
epyon
Message:
  • context bugfixes, force apply state at creation and apply render state
  • window creates context
  • index buffer
  • vertex arrays (simulation of GL 3 functionality)
  • bugfixes
File:
1 edited

Legend:

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

    r37 r44  
    1313{
    1414        // apply_framebuffer
     15       
    1516        apply_scissor_test( cs.scissor_test );
    1617        apply_color_mask( cs.color_mask );
     
    3536                m_clear_stencil = cs.stencil;
    3637        }
    37 
    38         glClear( cs.buffers );
     38       
     39        glClear( clear_state_buffers_to_mask( cs.buffers ) );
    3940}
    4041
     
    347348}
    348349
     350
     351gl_context::gl_context()
     352{
     353        force_apply_render_state( m_render_state );
     354}
Note: See TracChangeset for help on using the changeset viewer.