mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Fixed texture issues. Still needs alpha blending fixed though.
This was SVN commit r3523.
This commit is contained in:
parent
dbdbb84f41
commit
85b2f8f7b1
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue