chill out cubemaps
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift.c
index 40be41ef0c7b9d4732b35509f37239987c79d1e4..3188fd9adee822628b7291a4d84788a5db364f39 100644 (file)
@@ -507,10 +507,17 @@ VG_STATIC void render_main_game(void){
 
    /* --------------------------------------------------------------------- */
 
-   /* cubemaps TODO: Need a cubemap mark dirty thing for pordals */
    world_instance *view_world = localplayer.viewable_world;
    if( view_world != NULL ){
       render_world_cubemaps( view_world );
+
+      ent_gate *gate = view_world->rendering_gate;
+      if( gate ){
+         if( gate->flags & k_ent_gate_nonlocal ){
+            world_instance *dest = &world_static.instances[ gate->target ];
+            render_world_cubemaps( dest );
+         }
+      }
    }
 
    /* variable res target */