]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.cpp
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / texture2d.cpp
index b8f2f26b7076320f78f5ef792dc69a9acd7e1b82..c1f6e0e9e7bd75f664cc682209b551746d3f4e48 100644 (file)
@@ -89,18 +89,18 @@ void Texture2D::Loader::image_data(const string &data)
        Graphics::Image img;
        img.load_memory(data.data(), data.size());
 
-       static_cast<Texture2D &>(tex).image(img);
+       static_cast<Texture2D &>(obj).image(img);
 }
 
 void Texture2D::Loader::raw_data(const string &data)
 {
-       Texture2D &t2d=static_cast<Texture2D &>(tex);;
+       Texture2D &t2d=static_cast<Texture2D &>(obj);
        t2d.image(0, t2d.ifmt, UNSIGNED_BYTE, data.data());
 }
 
 void Texture2D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h, unsigned b)
 {
-       static_cast<Texture2D &>(tex).storage(fmt, w, h, b);
+       static_cast<Texture2D &>(obj).storage(fmt, w, h, b);
 }
 
 } // namespace GL