diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-02 12:28:40 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-02 12:28:40 +0100 |
commit | 9f88509c8e440d9bb3430b71708efd69988f461c (patch) | |
tree | 289fdedfbff9c4750b2ecf2e1383a2756ae32438 /src/main.cpp | |
parent | b2539e89f054b066ddbe0741d79553321d54a049 (diff) |
Tracing rays through the world.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index f6a2de5..f4b1105 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,6 +4,7 @@ bool debug_draw_cmodels = false; bool debug_draw_paths = false; bool debug_draw_tile_coords = false; +render::state_t *debug_render; uint64_t nano_clock(void) { @@ -23,7 +24,8 @@ int main() size_t frame = 0; double before = NAN; - window.setVerticalSyncEnabled(false); + debug_render = &render; + window.setVerticalSyncEnabled(true); text::load_strings("pl"); assets::load(); |