mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Cleaned up exception handling code when creating new fonts, spritebatches, and shaders
This commit is contained in:
@@ -63,6 +63,7 @@ ParticleSystem::ParticleSystem(Image *sprite, unsigned int buffer)
|
||||
, pLast(0)
|
||||
, pEnd(0)
|
||||
, particleVerts(0)
|
||||
, sprite(sprite)
|
||||
, active(true)
|
||||
, emissionRate(0)
|
||||
, emitCounter(0)
|
||||
@@ -91,11 +92,10 @@ ParticleSystem::ParticleSystem(Image *sprite, unsigned int buffer)
|
||||
, offsetX(sprite->getWidth()*0.5f)
|
||||
, offsetY(sprite->getHeight()*0.5f)
|
||||
{
|
||||
this->sprite = sprite;
|
||||
sprite->retain();
|
||||
sizes.push_back(1.0f);
|
||||
colors.push_back(Colorf(1.0f, 1.0f, 1.0f, 1.0f));
|
||||
setBufferSize(buffer);
|
||||
sprite->retain();
|
||||
}
|
||||
|
||||
ParticleSystem::~ParticleSystem()
|
||||
|
||||
Reference in New Issue
Block a user