X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=skaterift.c;h=3188fd9adee822628b7291a4d84788a5db364f39;hb=c52dacb7bc07e300312e45d605d206222dcbb181;hp=40be41ef0c7b9d4732b35509f37239987c79d1e4;hpb=14b3d5c13faab36bd37ae27aa8c1501ba7146f89;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/skaterift.c b/skaterift.c index 40be41e..3188fd9 100644 --- a/skaterift.c +++ b/skaterift.c @@ -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 */