X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexturecube.cpp;fp=source%2Ftexturecube.cpp;h=6ec3662523dea02903e024bb9113b91125e4b711;hb=71ca61440610e650c6c1b761ebee1b587bbc969e;hp=9ea33eabc1658213c63082a6e09dd5037d3380af;hpb=d99f756830d39437d88e6cc7af034c3074b0bd86;p=libs%2Fgl.git diff --git a/source/texturecube.cpp b/source/texturecube.cpp index 9ea33eab..6ec36625 100644 --- a/source/texturecube.cpp +++ b/source/texturecube.cpp @@ -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(img.get_data()); + const char *pixels = reinterpret_cast(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