]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2d.cpp
Remove default sampler from Texture
[libs/gl.git] / source / core / texture2d.cpp
index b3caf509ec3108b1d418c8298186d1e795d2cb03..1e9ec90344e242608caa55501268a08775a54aa2 100644 (file)
@@ -206,7 +206,6 @@ void Texture2D::unload()
        glDeleteTextures(1, &id);
        id = 0;
        allocated = 0;
-       default_sampler.unload();
 }
 
 
@@ -254,7 +253,6 @@ void Texture2D::Loader::storage_levels(PixelFormat fmt, unsigned w, unsigned h,
 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)