]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/buffer.h
Remove the separate allocation step from textures and buffers
[libs/gl.git] / source / core / buffer.h
index 0d656131dd331b75ec3af57ff81581c9e2b2a3a5..9144afaed3d1682f28efd8076988c8e815a977db 100644 (file)
@@ -28,7 +28,6 @@ class Buffer
 private:
        unsigned id;
        unsigned size;
-       bool allocated;
 
        static Buffer *scratch_binding;
 
@@ -43,10 +42,6 @@ public:
        be uploaded.  Storage cannot be changed once set. */
        void storage(unsigned);
 
-       /** Allocates storage for the buffer.  The contents are initially undefined.
-       If storage has already been allocated, does nothing. */
-       void allocate();
-
        /** Uploads data into the buffer, completely replacing any previous
        contents.  Storage must be defined beforehand.  The data must have size
        matching the defined storage. */