diff options
Diffstat (limited to 'src/wayclock.cc')
| -rw-r--r-- | src/wayclock.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/wayclock.cc b/src/wayclock.cc index 6fa5222..37b4fa9 100644 --- a/src/wayclock.cc +++ b/src/wayclock.cc @@ -2,7 +2,6 @@ #include "events.h" #include "graphics.h" -#include "rendering.h" #include "text.h" #include "utils.h" #include "window.h" @@ -107,18 +106,11 @@ int main() { wayc_defer(wayc_renderer_deinit(&renderer)); - wayc_renderer_use(&renderer); // << make current - - struct atlas_s atlas; - if (!wayc_atlas_init(&atlas, IMAGE_FORMAT_RED, WAYC_ATLAS_WIDTH, - WAYC_ATLAS_HEIGHT)) - wayc_panic("Failed to initialize atlas"); - - wayc_defer(wayc_atlas_deinit(&atlas)); + wayc_renderer_use(&renderer); wayc_window_redraw(&window, &loop); - struct app_s app = {&renderer, &fctx, &font, &atlas}; + struct app_s app = {&renderer, &fctx, &font, nullptr}; while (wayc_eventloop_running(&loop)) { wayc_eventloop_update(&loop, (u8*)&app); |
