mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Initial work on unified graphics buffers representing different types of data.
This commit is contained in:
@@ -191,7 +191,7 @@ void ParticleSystem::createBuffers(size_t size)
|
||||
auto gfx = Module::getInstance<Graphics>(Module::M_GRAPHICS);
|
||||
|
||||
size_t bytes = sizeof(Vertex) * size * 4;
|
||||
buffer = gfx->newBuffer(bytes, nullptr, BUFFER_VERTEX, vertex::USAGE_STREAM, 0);
|
||||
buffer = gfx->newBuffer(bytes, nullptr, BUFFERFLAG_VERTEX, vertex::USAGE_STREAM, 0);
|
||||
}
|
||||
catch (std::bad_alloc &)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user