glDeleteTextures(1, &id);
id = 0;
allocated = 0;
- default_sampler.unload();
}
Texture2D::AsyncLoader::AsyncLoader(Texture2D &t, IO::Seekable &i):
texture(t),
io(i),
- pixel_buffer(PIXEL_UNPACK_BUFFER),
mapped_address(0),
img_loader(Graphics::ImageLoader::open_io(io)),
phase(0)