Changeset 364 for trunk/src/gl


Ignore:
Timestamp:
05/15/15 12:52:52 (10 years ago)
Author:
epyon
Message:
  • fixed compilation on clang
  • cleared all clang warnings (except fix_me's)
Location:
trunk/src/gl
Files:
2 edited

Legend:

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

    r342 r364  
    734734                if ( slots[i] > OUTPUT_7 ) buffers[i] = 0;
    735735        }
    736         glDrawBuffers( count, buffers );
     736        glDrawBuffers( (GLsizei)count, buffers );
    737737}
    738738
  • trunk/src/gl/gl_device.cc

    r361 r364  
    5656{
    5757        load_sdl_image_library();
    58         SDL_Surface* image = IMG_LoadTyped_RW( SDL_RWFromMem( (void*)data, size ), 1, "tga" );
     58        SDL_Surface* image = IMG_LoadTyped_RW( SDL_RWFromMem( (void*)data, (int)size ), 1, "png" );
    5959        if ( !image )
    6060        {
     
    402402
    403403        const char* pc = shader_code.data();
    404         int l = shader_code.length();
     404        int l = (int)shader_code.length();
    405405
    406406        glShaderSource( glid, 1, &pc, &l );
Note: See TracChangeset for help on using the changeset viewer.