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
}
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)