Ignore:
Timestamp:
06/15/13 17:47:57 (12 years ago)
Author:
epyon
Message:
  • Nova builds with -Weverything/-Wall/-pedantic/etc on: on MSVC 2012 on GCC 4.6.3 on clang 3.2
  • ... without a single fucking warning.
File:
1 edited

Legend:

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

    r116 r121  
    8383}
    8484
    85 void gl_context::apply_stencil_face( int face, stencil_test_face& stencil, const stencil_test_face& new_stencil )
     85void gl_context::apply_stencil_face( unsigned face, stencil_test_face& stencil, const stencil_test_face& new_stencil )
    8686{
    8787        if (( stencil.op_fail       != new_stencil.op_fail       ) ||
     
    317317}
    318318
    319 void gl_context::force_apply_stencil_face( int face, const stencil_test_face& stencil )
     319void gl_context::force_apply_stencil_face( unsigned face, const stencil_test_face& stencil )
    320320{
    321321        glStencilOpSeparate( face,
     
    356356}
    357357
    358 void gl_context::draw( primitive prim, const render_state& rs, program* p, vertex_array* va, int count )
     358void gl_context::draw( primitive prim, const render_state& rs, program* p, vertex_array* va, size_t count )
    359359{
    360360        apply_render_state( rs );
     
    365365                if ( va->has_index_buffer() )
    366366                {
    367                         glDrawElements( primitive_to_enum(prim), count, datatype_to_gl_enum( va->get_index_buffer_type() ), 0 );
     367                        glDrawElements( primitive_to_enum(prim), static_cast<GLsizei>( count ), datatype_to_gl_enum( va->get_index_buffer_type() ), 0 );
    368368                }
    369369                else
    370370                {
    371                         glDrawArrays( primitive_to_enum(prim), 0, count);
     371                        glDrawArrays( primitive_to_enum(prim), 0, static_cast<GLsizei>( count ) );
    372372                }
    373373                va->unbind();
Note: See TracChangeset for help on using the changeset viewer.