mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Fixed VS project files, and a bug where ParticleSystem::setSprite did not retain the new Image.
This commit is contained in:
@@ -62,10 +62,7 @@ namespace opengl
|
||||
ParticleSystem::~ParticleSystem()
|
||||
{
|
||||
if(this->sprite != 0)
|
||||
{
|
||||
this->sprite->release();
|
||||
this->sprite = 0;
|
||||
}
|
||||
|
||||
if(pStart != 0)
|
||||
delete [] pStart;
|
||||
@@ -138,13 +135,11 @@ namespace opengl
|
||||
|
||||
void ParticleSystem::setSprite(Image * image)
|
||||
{
|
||||
if(this->sprite != 0)
|
||||
{
|
||||
this->sprite->release();
|
||||
this->sprite = 0;
|
||||
}
|
||||
if(sprite != 0)
|
||||
sprite->release();
|
||||
|
||||
this->sprite = image;
|
||||
sprite = image;
|
||||
sprite->retain();
|
||||
}
|
||||
|
||||
void ParticleSystem::setBufferSize(unsigned int size)
|
||||
|
||||
Reference in New Issue
Block a user