Changeset 364 for trunk/src/gl
- Timestamp:
- 05/15/15 12:52:52 (10 years ago)
- Location:
- trunk/src/gl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_context.cc
r342 r364 734 734 if ( slots[i] > OUTPUT_7 ) buffers[i] = 0; 735 735 } 736 glDrawBuffers( count, buffers );736 glDrawBuffers( (GLsizei)count, buffers ); 737 737 } 738 738 -
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.