X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbuffer.cpp;h=17ae494f72dc37a0892fdf282af33665d8723c49;hp=b4b71c3a0130efadcaea894f0fd921b9e833629b;hb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;hpb=f17794d55923d4fb4f63e9d082d8d84a735a04e8 diff --git a/source/buffer.cpp b/source/buffer.cpp index b4b71c3a..17ae494f 100644 --- a/source/buffer.cpp +++ b/source/buffer.cpp @@ -31,7 +31,7 @@ Buffer::~Buffer() void Buffer::bind(BufferType t) const { glBindBufferARB(t, id); - binding(t)=this; + binding(t) = this; } void Buffer::maybe_bind() const @@ -42,7 +42,7 @@ void Buffer::maybe_bind() const void Buffer::set_usage(BufferUsage u) { - usage=u; + usage = u; } void Buffer::data(unsigned size, const void *d) @@ -59,11 +59,11 @@ void Buffer::sub_data(unsigned offset, unsigned size, const void *d) void Buffer::unbind(BufferType type) { - const Buffer *&ptr=binding(type); + const Buffer *&ptr = binding(type); if(ptr) { glBindBufferARB(type, 0); - ptr=0; + ptr = 0; } } @@ -79,7 +79,7 @@ const Buffer *&Buffer::binding(BufferType type) } } -const Buffer *Buffer::bound[4]={ 0, 0, 0, 0 }; +const Buffer *Buffer::bound[4] = { 0, 0, 0, 0 }; } // namespace GL } // namespace Msp