X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_render.h;h=e04a6bb85455da4aaebecc7b71bc5cccf175705a;hb=d6171f1c56789b2ca79efa3313fbbf74a13bda7a;hp=811e6a447bf5cd4e287d75c3bf5a46375fdaa042;hpb=7a2032debc2c3bff7e4f795f39fd0e798186b4c2;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_render.h b/world_render.h index 811e6a4..e04a6bb 100644 --- a/world_render.h +++ b/world_render.h @@ -48,9 +48,6 @@ VG_STATIC void world_render_init(void) fb->fixed_h = 1024; fb->resolution_div = 0; - /* TODO: We could get away with this being R16u, and just have it be - * a normed value between min and max of the bounding box Y */ - fb->attachments[0].display_name = NULL; fb->attachments[0].purpose = k_framebuffer_attachment_type_colour; fb->attachments[0].internalformat = GL_RG16F; @@ -376,6 +373,10 @@ VG_STATIC void render_world_gates( world_instance *world, camera *cam, #else render_gate( world, gate, cam, layer_depth ); #endif + + /* should really be set in fixed update since its used in the physics + * of most systems. too bad! */ + world->rendering_gate = gate; } }