]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.cpp
Support embedding textures in datafiles
[libs/gl.git] / source / texture3d.cpp
index 17adb6a109369ed6ca3053d43ee740f851cd6cb6..c38b44652d366c4c13fa9cd18bf3928de8da9080 100644 (file)
@@ -53,7 +53,7 @@ void Texture3D::image(int level, PixelFormat fmt, GLenum type, const void *data)
 void Texture3D::load_image(const string &fn, int dp)
 {
        Image img;
-       img.load(fn);
+       img.load_file(fn);
 
        unsigned w=img.get_width();
        unsigned h=img.get_height();