]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.cpp
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / texturecube.cpp
index 9ea33eabc1658213c63082a6e09dd5037d3380af..6ec3662523dea02903e024bb9113b91125e4b711 100644 (file)
@@ -183,7 +183,7 @@ void TextureCube::image(TextureCubeFace face, const Graphics::Image &img)
        PixelStore pstore = PixelStore::from_image(img);
        BindRestore _bind_ps(pstore);
 
-       image(face, 0, img.get_data());
+       image(face, 0, img.get_pixels());
 }
 
 void TextureCube::image(TextureCubeFace face, const Graphics::Image &img, bool)
@@ -209,10 +209,10 @@ void TextureCube::image(const Graphics::Image &img, unsigned lv)
        PixelStore pstore = PixelStore::from_image(img);
        BindRestore _bind_ps(pstore);
 
-       const char *cdata = reinterpret_cast<const char *>(img.get_data());
+       const char *pixels = reinterpret_cast<const char *>(img.get_pixels());
        unsigned face_size = img.get_stride()*size;
        for(unsigned i=0; i<6; ++i)
-               image(enumerate_faces(i), 0, cdata+i*face_size);
+               image(enumerate_faces(i), 0, pixels+i*face_size);
 }
 
 unsigned TextureCube::get_n_levels() const