Skip to content

Commit 3eb47c1

Browse files
committed
ship_render() still needs to clear out miscellaneous per-draw model data.
1 parent 2db4bc3 commit 3eb47c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/ship/ship.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19026,6 +19026,8 @@ void ship_render(object* obj, draw_list* scene)
1902619026
}
1902719027
}
1902819028

19029+
model_clear_instance(sip->model_num);
19030+
1902919031
// Only render electrical arcs if within 500m of the eye (for a 10m piece)
1903019032
if ( vm_vec_dist_quick( &obj->pos, &Eye_position ) < obj->radius*50.0f && !Rendering_to_shadow_map ) {
1903119033
for ( int i = 0; i < MAX_SHIP_ARCS; i++ ) {

0 commit comments

Comments
 (0)