Texture2D &texture;
IO::Seekable &io;
Buffer pixel_buffer;
- char *mapped_address;
+ char *mapped_address = 0;
Graphics::Image image;
- Graphics::ImageLoader *img_loader;
- unsigned n_bytes;
- int phase;
+ Graphics::ImageLoader *img_loader = 0;
+ unsigned n_bytes = 0;
+ int phase = 0;
public:
AsyncLoader(Texture2D &, IO::Seekable &);
OpenGLTexture2D::AsyncLoader::AsyncLoader(Texture2D &t, IO::Seekable &i):
texture(t),
io(i),
- mapped_address(0),
- img_loader(Graphics::ImageLoader::open_io(io)),
- phase(0)
+ img_loader(Graphics::ImageLoader::open_io(io))
{ }
OpenGLTexture2D::AsyncLoader::~AsyncLoader()