X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gate.h;h=3e35081e2b1c72639bfa510a9196eb4da04fc706;hb=c88172d6968a02a4e643b74cc419c0ac8168d92a;hp=004ee8ade1f44ae11ca48a09914e86a5578c61b5;hpb=f7db507815e2822d971031c30f25e02b45e9c914;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gate.h b/world_gate.h index 004ee8a..3e35081 100644 --- a/world_gate.h +++ b/world_gate.h @@ -132,7 +132,8 @@ VG_STATIC int render_gate( teleport_gate *gate, camera *cam ) glDisable( GL_STENCIL_TEST ); render_water_texture( &gate_view ); - fb_use( NULL ); + render_fb_bind( gpipeline.fb_main ); + glEnable( GL_STENCIL_TEST ); render_water_surface( &gate_view );