indians with particle party! Particel renderer fix for tilesets with fog enabled.

This commit is contained in:
Titus Tscharntke 2010-02-24 00:43:29 +00:00
parent 15783511fd
commit 96114d25e4
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
// ==============================================================
// This file is part of Glest Shared Library (www.glest.org)
//
// Copyright (C) 2001-2008 Martiño Figueroa
// Copyright (C) 2001-2008 Marti<EFBFBD>o Figueroa
//
// You can redistribute this code and/or modify it under
// the terms of the GNU General Public License as published
@ -96,6 +96,7 @@ void ParticleRendererGl::renderSystem(ParticleSystem *ps){
glBindTexture(GL_TEXTURE_2D, 0);
}
glDisable(GL_ALPHA_TEST);
glDisable(GL_FOG);
glAlphaFunc(GL_GREATER, 0.0f);
glEnable(GL_TEXTURE_2D);
glEnableClientState(GL_VERTEX_ARRAY);