|
|
@@ -50,12 +50,11 @@ ParticleEmitter* ParticleEmitter::create(const char* textureFile, TextureBlendin
|
|
|
Texture* texture = NULL;
|
|
|
texture = Texture::create(textureFile, true);
|
|
|
|
|
|
- if (!texture)
|
|
|
+ if (!texture)
|
|
|
{
|
|
|
- // Use default texture.
|
|
|
- texture = Texture::create("res/particle-default.png", true);
|
|
|
+ LOG_ERROR_VARG("Error creating ParticleEmitter: Could not read texture file: %s", textureFile);
|
|
|
+ return NULL;
|
|
|
}
|
|
|
- assert(texture);
|
|
|
|
|
|
// Use default SpriteBatch material.
|
|
|
SpriteBatch* batch = SpriteBatch::create(texture, NULL, particleCountMax);
|