mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fix crashes when creating a Buffer.
This commit is contained in:
@@ -38,6 +38,9 @@ namespace opengl
|
||||
Buffer::Buffer(love::graphics::Graphics *gfx, const Settings &settings, const std::vector<DataDeclaration> &format, const void *data, size_t size, size_t arraylength)
|
||||
: love::graphics::Buffer(gfx, settings, format, size, arraylength)
|
||||
{
|
||||
size = getSize();
|
||||
arraylength = getArrayLength();
|
||||
|
||||
if (typeFlags & TYPEFLAG_VERTEX)
|
||||
mapType = BUFFERTYPE_VERTEX;
|
||||
else if (typeFlags & TYPEFLAG_INDEX)
|
||||
|
||||
Reference in New Issue
Block a user