Misc fixes, null crash on invalid billboards, some non-weather particle emitters incorrectly created with Y randomization
This commit is contained in:
@@ -450,7 +450,7 @@ void ParticleEmitter::setParticleType(const ParticleKind* type)
|
||||
else
|
||||
{
|
||||
if (m_is_glsl)
|
||||
m_node = ParticleSystemProxy::addParticleNode(m_is_glsl, true);
|
||||
m_node = ParticleSystemProxy::addParticleNode(m_is_glsl, false);
|
||||
else
|
||||
m_node = irr_driver->addParticleNode();
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ void STKBillboard::render()
|
||||
core::vector3df pos = getAbsolutePosition();
|
||||
glBindVertexArray(billboardvao);
|
||||
video::ITexture *tex = Material.getTexture(0);
|
||||
if (tex == NULL)
|
||||
return;
|
||||
compressTexture(tex, true, true);
|
||||
GLuint texid = getTextureGLuint(tex);
|
||||
setTexture(0, texid, GL_LINEAR, GL_LINEAR);
|
||||
|
||||
Reference in New Issue
Block a user