]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.cpp
Graphics::Image::get_data was renamed to get_pixels
[libs/gl.git] / source / texture2d.cpp
index cee932f7231e9fb23adcfb4ce86ba28e736dd17a..311a3e4569704c92b99703c4a0473f508778c9e1 100644 (file)
@@ -165,7 +165,7 @@ void Texture2D::image(const Graphics::Image &img, unsigned lv, bool from_buffer)
        PixelStore pstore = PixelStore::from_image(img);
        BindRestore _bind_ps(pstore);
 
-       image(0, from_buffer ? 0 : img.get_data());
+       image(0, from_buffer ? 0 : img.get_pixels());
 }
 
 unsigned Texture2D::get_n_levels() const
@@ -270,7 +270,7 @@ bool Texture2D::AsyncLoader::process()
        }
        else if(phase==2)
        {
-               const char *data = reinterpret_cast<const char *>(image.get_data());
+               const char *data = reinterpret_cast<const char *>(image.get_pixels());
                copy(data, data+n_bytes, mapped_address);
        }
        else if(phase==3)