X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuffer.h;h=a7d4c2ba4314f8cbbc9db9fb6c2422cf0e85da2c;hb=1bad86b461abd4fe2a1cb1c6c5685adf5db13935;hp=4f9f32943df58e420848832d2d298914c74676e4;hpb=b69e2eeea92eae2c37c054a2a8b36f55e0ca2690;p=libs%2Fgl.git diff --git a/source/buffer.h b/source/buffer.h index 4f9f3294..a7d4c2ba 100644 --- a/source/buffer.h +++ b/source/buffer.h @@ -89,12 +89,11 @@ public: /** Unbinds the buffer from its default slot. */ void unbind() const { unbind_from(type); } - static const Buffer *current(BufferType t) { return binding(t); } + static const Buffer *current(BufferType); static void unbind_from(BufferType); private: static const Buffer *&binding(BufferType); static bool set_current(BufferType, const Buffer *); - static void restore(const Buffer *, BufferType); };