move location of main camera to g_render
[carveJwlIkooP6JGAAIwe30JlM.git] / font.h
diff --git a/font.h b/font.h
index 15ecde6de3bd1b18ebc61e2506411b23477180bc..fa144c40576a8c5079dc930b04ea12aea2ceb225 100644 (file)
--- a/font.h
+++ b/font.h
@@ -166,13 +166,13 @@ static void font3d_bind( font3d *font, enum font_shader shader,
       shader_scene_font_uTexGarbage(0);
       shader_scene_font_uTexMain(1);
 
-      shader_scene_font_uPv( skaterift.cam.mtx.pv );
+      shader_scene_font_uPv( g_render.cam.mtx.pv );
       shader_scene_font_uTime( vg.time );
 
       WORLD_BIND_LIGHT_BUFFERS_UB0_TEX234( world, scene_font );
 
       bind_terrain_noise();
-      shader_scene_font_uCamera( skaterift.cam.transform[3] );
+      shader_scene_font_uCamera( g_render.cam.transform[3] );
    }
    mesh_bind( &font->mesh );
 }