Changeset 120 for trunk/src/gl/gl_device.cc
- Timestamp:
- 06/15/13 02:05:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r98 r120 74 74 load_sdl_image_library(); 75 75 SDL_Surface* image = IMG_Load( filename.c_str() ); 76 if (!image) 77 { 78 NV_LOG( LOG_ERROR, "Image file " << filename.c_str() << " not found!" ); 79 return nullptr; 80 } 76 81 image_data* data = new image_data( glm::ivec2( image->w, image->h ), image->format->BytesPerPixel, (nv::uint8*)image->pixels ); 77 82 return data;
Note: See TracChangeset
for help on using the changeset viewer.