commit 2b1d40cca1d92ac3d01532dbab459fc7ca1266f6 parent 2ec6a5fffb04d5550d46062b7e79784ed6798248 Author: Michael Savage <mikejsavage@gmail.com> Date: Tue May 16 21:10:40 +0300 Oops Diffstat:
hm.cc | | | 3 | +++ |
diff --git a/hm.cc b/hm.cc @@ -36,6 +36,7 @@ static u64 sid; static double last_connection_attempt = -5.0; // TODO static bool connected = false; static struct sockaddr_in addr; +static UB tree_uniforms; extern "C" GAME_INIT( game_init ) { net_init(); @@ -49,6 +50,8 @@ extern "C" GAME_INIT( game_init ) { game->test_sun = 0.3f; + tree_uniforms = renderer_new_ub(); + const size_t triangles = 65536; ImmediateTriangle * immediate_memory = memarena_push_many( &mem->persistent_arena, ImmediateTriangle, triangles ); immediate_init( &game->test_immediate, immediate_memory, triangles );