X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuffer.cpp;h=17ae494f72dc37a0892fdf282af33665d8723c49;hb=4d3bee9264c4e60fb811019fc1699e17a338d13d;hp=b4b71c3a0130efadcaea894f0fd921b9e833629b;hpb=76e338af116120d93d082ad247591ec9adad9233;p=libs%2Fgl.git 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