]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug where transparent models used an out of date material (generated earlier...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Mar 2007 03:09:29 +0000 (03:09 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Mar 2007 03:09:29 +0000 (03:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6968 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 7f96334fec4f7d13b39265fbcbcaf801241eab3d..0b703905276d9558ef8633427a9fcc0e1535dae8 100644 (file)
@@ -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