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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.