From: havoc Date: Wed, 14 Mar 2007 03:09:29 +0000 (+0000) Subject: fix bug where transparent models used an out of date material (generated earlier... X-Git-Tag: xonotic-v0.1.0preview~3448 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2882f5bb21bbeef5eef326f7679ce7af321d97b4;p=xonotic%2Fdarkplaces.git fix bug where transparent models used an out of date material (generated earlier in the same frame), which caused problems when multiple instances of the same model exist in the same frame and one or more of them are transparent git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6968 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 7f96334f..0b703905 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -3888,6 +3888,7 @@ static void R_DrawSurface_TransparentCallback(const entity_render_t *ent, const j = i + 1; surface = rsurface_model->data_surfaces + surfacelist[i]; texture = surface->texture; + R_UpdateTextureInfo(ent, texture); rsurface_texture = texture->currentframe; rsurface_uselightmaptexture = surface->lightmaptexture != NULL; // scan ahead until we find a different texture