CHGICKEN
[carveJwlIkooP6JGAAIwe30JlM.git] / gate.h
diff --git a/gate.h b/gate.h
index 65dda90b275ced92e690c7e95654953d89dd2203..2f2b21ef096246537863ad80e2209b08cb9b1ac5 100644 (file)
--- a/gate.h
+++ b/gate.h
@@ -66,9 +66,9 @@ static void gate_init( void (*newfb)(GLuint*,GLuint*,GLuint*) )
    free( mgate );
 }
 
-static void gate_fb_resize( void (*resize)(GLuint*,GLuint*,GLuint*) )
+static void gate_fb_resize(void)
 {
-   resize( &grender.fb, &grender.rgb, &grender.rb );
+   resize_renderbuffer_std( &grender.fb, &grender.rgb, &grender.rb );
 }
 
 static void render_gate( teleport_gate *gate, m4x3f camera )
@@ -125,10 +125,7 @@ static void render_gate( teleport_gate *gate, m4x3f camera )
    surface[3] = v3_dot( surface, gate->other->co );
 
    m4x4f projection;
-   m4x4_projection( projection,
-         gpipeline.fov,
-         (float)vg_window_x / (float)vg_window_y, 
-         0.1f, 900.0f );
+   pipeline_projection( projection, 0.1f, 900.0f );
 
 #if 0 /* For debugging frustum */
    {
@@ -198,7 +195,7 @@ static void render_gate( teleport_gate *gate, m4x3f camera )
 
    m4x4_mul( projection, view, projection );
    
-   render_world( projection );
+   render_world( projection, cam_new );
    render_water_texture( cam_new );
    glBindFramebuffer( GL_FRAMEBUFFER, grender.fb );
    render_water_surface( projection );