X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fbuffer.h;h=9144afaed3d1682f28efd8076988c8e815a977db;hp=0d656131dd331b75ec3af57ff81581c9e2b2a3a5;hb=ada4b7614137221b64a00f31fde1498064e9fb19;hpb=6065f6622cc275dc0b20baaf7c267e71169d18f3 diff --git a/source/core/buffer.h b/source/core/buffer.h index 0d656131..9144afae 100644 --- a/source/core/buffer.h +++ b/source/core/buffer.h @@ -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. */