From 85b2f8f7b13251a6e66770bf0cfab54ba2d17368 Mon Sep 17 00:00:00 2001 From: livingaftermidnight Date: Fri, 17 Feb 2006 00:26:15 +0000 Subject: [PATCH] Fixed texture issues. Still needs alpha blending fixed though. This was SVN commit r3523. --- source/graphics/ParticleEmitter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/graphics/ParticleEmitter.cpp b/source/graphics/ParticleEmitter.cpp index c1523dee9f..32da7087ed 100755 --- a/source/graphics/ParticleEmitter.cpp +++ b/source/graphics/ParticleEmitter.cpp @@ -24,7 +24,8 @@ CEmitter::CEmitter(const int MAX_PARTICLES, const int lifetime, int textureID) updateSpeed = 0.02f; blend_mode = 1; size = 0.15f; - texture = textureID; + //texture = textureID; + texture = 0; // init the used/open list usedList = NULL; @@ -157,7 +158,8 @@ bool CEmitter::renderEmitter() } // Bind the texture. Use the texture assigned to this emitter. - glBindTexture(GL_TEXTURE_2D, texture); + int unit = 0; + g_Renderer.SetTexture(unit, texture); glBegin(GL_QUADS); {