Skip to content

Commit

Permalink
Fixed seg fault in Rend_RenderSprite if renderTextures == 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Feb 6, 2009
1 parent c9c1d62 commit e2bc116
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doomsday/engine/portable/src/rend_sprite.c
Expand Up @@ -923,10 +923,14 @@ void Rend_RenderSprite(const rendspriteparams_t* params)
{
Material_Prepare(&ms, mat, true, NULL);
}
}

GL_BindTexture(ms.units[MTU_PRIMARY].texInst->id,
ms.units[MTU_PRIMARY].magMode);
GL_BindTexture(ms.units[MTU_PRIMARY].texInst->id,
ms.units[MTU_PRIMARY].magMode);
}
else
{
GL_SetNoTexture();
}

// Coordinates to the center of the sprite (game coords).
spriteCenter[VX] = params->center[VX] + params->srvo[VX];
Expand Down

0 comments on commit e2bc116

Please sign in to comment.