Hi,
this is a snippet from implementation of 2D OpenGL texture. setData() is overloaded for various image formats so that valid constant is passed to GL Api (rgb8_image_t image overload passes GL_RGB8 etc). I didn't do anything but changing png_read_image() to read_image() and after running app all images on screen were broken - most of images is white.
could you try to load images without using any_image<...>. Also can you try to load one of the png files from the test_images folder? What system to you work on? What's the compiler?
On a side note: maybe new io could use boost::exception? Would be great if read_image() used boost::errinfo_file_name() when file cannot be opened as now it is not better than just returning error code.
It's a good idea. I'll put it on my todo list. For backward compatibility I might have a compiler symbol though the user can still have std::ios_base::failure.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users