From 2882f5bb21bbeef5eef326f7679ce7af321d97b4 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 14 Mar 2007 03:09:29 +0000 Subject: [PATCH] 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 --- gl_rmain.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2