]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.cpp
Allocate textures attached to framebuffers automatically
[libs/gl.git] / source / texture3d.cpp
index 6515946bb2bba5885dd6dd6d5c425438804cc400..70dcf7725568bef6637f18cf95fe1d89e5c61493 100644 (file)
@@ -39,8 +39,6 @@ void Texture3D::storage(PixelFormat f, unsigned w, unsigned h, unsigned d)
        height = h;
        depth = d;
        ifmt = f;
-
-       image(0, ifmt, UNSIGNED_BYTE, 0);
 }
 
 void Texture3D::allocate(unsigned level)