]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_sprites.c
compute sorted surface list at load of each model - this tripled
[xonotic/darkplaces.git] / r_sprites.c
index 444d1668d0190715ef83cd3a461e8b4eb71ef78e..88238522e24e2ac4a19e88eb0af990d201024427 100644 (file)
@@ -360,11 +360,10 @@ void R_Model_Sprite_Draw_TransparentCallback(const entity_render_t *ent, const r
                if (ent->frameblend[i].lerp >= 0.01f)
                {
                        mspriteframe_t *frame = model->sprite.sprdata_frames + ent->frameblend[i].frame;
-                       texture_t *texture = model->data_textures + ent->frameblend[i].frame;
+                       texture_t *texture = R_GetCurrentTexture(model->data_textures + ent->frameblend[i].frame);
 #if 0
                        vec3_t o, l, u;
 #endif
-                       R_UpdateTextureInfo(ent, texture);
 
                        // SPR_LABEL should not use depth test AT ALL
                        if(model->sprite.sprnum_type == SPR_LABEL || model->sprite.sprnum_type == SPR_LABEL_SCALE)