mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
graphics: move buffer:clear error checking to high level code
This commit is contained in:
@@ -141,7 +141,7 @@ public:
|
||||
/**
|
||||
* Reset the given portion of this buffer's data to 0.
|
||||
*/
|
||||
virtual void clear(size_t offset, size_t size) = 0;
|
||||
void clear(size_t offset, size_t size);
|
||||
|
||||
/**
|
||||
* Copy a portion of this Buffer's data to another buffer, using the GPU.
|
||||
@@ -178,6 +178,8 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
virtual void clearInternal(size_t offset, size_t size) = 0;
|
||||
|
||||
std::vector<DataMember> dataMembers;
|
||||
size_t arrayLength;
|
||||
size_t arrayStride;
|
||||
|
||||
Reference in New Issue
Block a user