X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fbuffer.cpp;fp=source%2Fcore%2Fbuffer.cpp;h=557e576d2ac929e256646c0a3cdc59bd3887a962;hb=be6ffe96ecb4707599fe1a6f620c348760213d46;hp=523b737d32bf696ff3628e48ddd4b6b64e55f428;hpb=84e0e55710123e54617d342df852007f8b60af24;p=libs%2Fgl.git diff --git a/source/core/buffer.cpp b/source/core/buffer.cpp index 523b737d..557e576d 100644 --- a/source/core/buffer.cpp +++ b/source/core/buffer.cpp @@ -8,7 +8,7 @@ using namespace std; namespace Msp { namespace GL { -void Buffer::storage(unsigned sz) +void Buffer::storage(size_t sz) { if(size>0) { @@ -29,7 +29,7 @@ void Buffer::data(const void *d) return sub_data(0, size, d); } -void Buffer::sub_data(unsigned off, unsigned sz, const void *d) +void Buffer::sub_data(size_t off, size_t sz, const void *d) { if(size==0) throw invalid_operation("Buffer::sub_data"); @@ -37,7 +37,7 @@ void Buffer::sub_data(unsigned off, unsigned sz, const void *d) BufferBackend::sub_data(off, sz, d); } -void Buffer::require_size(unsigned req_sz) const +void Buffer::require_size(size_t req_sz) const { if(size