Ignore:
Timestamp:
06/15/13 02:05:49 (12 years ago)
Author:
epyon
Message:
  • Nova now properly compiles and works under: mingw GCC 4.6 32-bit target mingw GCC 4.6 64-bit targte clang 3.2 32-bit target (64-bit clang doesn't work under windows)
  • warning removal will follow soon
File:
1 edited

Legend:

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

    r98 r120  
    7474        load_sdl_image_library();
    7575        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        }
    7681        image_data* data = new image_data( glm::ivec2( image->w, image->h ), image->format->BytesPerPixel, (nv::uint8*)image->pixels );
    7782        return data;
Note: See TracChangeset for help on using the changeset viewer.