X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture2d_backend.cpp;h=9efc4351e65b47e8c6a08dda88d5cb3d344e4565;hb=710363bade528b5015a7c472db3aa90eb08207ab;hp=2f7e503b7d42a9aec7e8055a38fa2446e5805a0a;hpb=ef650a483b4201a1e9727f9a86e59894344d30e8;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture2d_backend.cpp b/source/backends/opengl/texture2d_backend.cpp index 2f7e503b..9efc4351 100644 --- a/source/backends/opengl/texture2d_backend.cpp +++ b/source/backends/opengl/texture2d_backend.cpp @@ -16,11 +16,11 @@ private: 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 &); @@ -106,9 +106,7 @@ void OpenGLTexture2D::unload() 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()