Changeset 364 for trunk/src/gl/gl_device.cc
- Timestamp:
- 05/15/15 12:52:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r361 r364 56 56 { 57 57 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" ); 59 59 if ( !image ) 60 60 { … … 402 402 403 403 const char* pc = shader_code.data(); 404 int l = shader_code.length();404 int l = (int)shader_code.length(); 405 405 406 406 glShaderSource( glid, 1, &pc, &l );
Note: See TracChangeset
for help on using the changeset viewer.