mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix compile warning
This commit is contained in:
@@ -35,10 +35,10 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDe
|
||||
, size(size)
|
||||
, usageFlags(settings.usageFlags)
|
||||
, dataUsage(settings.dataUsage)
|
||||
, debugName(settings.debugName)
|
||||
, mapped(false)
|
||||
, mappedType(MAP_WRITE_INVALIDATE)
|
||||
, immutable(false)
|
||||
, debugName(settings.debugName)
|
||||
{
|
||||
if (size == 0 && arraylength == 0)
|
||||
throw love::Exception("Size or array length must be specified.");
|
||||
|
||||
Reference in New Issue
Block a user