mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Always use explicitly typed buffers, even in internal code
This commit is contained in:
@@ -192,7 +192,8 @@ void ParticleSystem::createBuffers(size_t size)
|
||||
|
||||
size_t bytes = sizeof(Vertex) * size * 4;
|
||||
Buffer::Settings settings(Buffer::TYPEFLAG_VERTEX, 0, BUFFERUSAGE_STREAM);
|
||||
buffer = gfx->newBuffer(settings, nullptr, bytes);
|
||||
auto decl = Buffer::getCommonFormatDeclaration(CommonFormat::XYf_STf_RGBAub);
|
||||
buffer = gfx->newBuffer(settings, decl, nullptr, bytes, 0);
|
||||
}
|
||||
catch (std::bad_alloc &)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user