summaryrefslogtreecommitdiff
path: root/src/wayclock.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-12 12:44:44 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-12 12:44:44 +0100
commit716cccb220a9e2337320ac591d575a2f68b4ed2c (patch)
tree5d5151ff0c1dda0b847e1e0bf6ab8d6f2ac61c2c /src/wayclock.cc
parentc8e3a40dfcc09a051a6bafd06c7591b82bf17710 (diff)
ohj
Diffstat (limited to 'src/wayclock.cc')
-rw-r--r--src/wayclock.cc12
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);