summaryrefslogtreecommitdiff
path: root/src/graphics.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/graphics.cc
parentc8e3a40dfcc09a051a6bafd06c7591b82bf17710 (diff)
ohj
Diffstat (limited to 'src/graphics.cc')
-rw-r--r--src/graphics.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/graphics.cc b/src/graphics.cc
index 23a5ee5..a35e9d0 100644
--- a/src/graphics.cc
+++ b/src/graphics.cc
@@ -4,7 +4,6 @@
#include <EGL/eglplatform.h>
#include <glad.h>
-#include <cstdio>
#include <cstring>
#include "cglm/vec4.h"
@@ -45,18 +44,6 @@ static bool wayc_graphics_config(EGLDisplay display, EGLConfig* config) {
return nconfs > 0;
}
-static void wayc_sokol_log(const char* msg, uint32_t x, uint32_t y,
- const char* file, uint32_t line, const char* func,
- void* user) {
- wayc_notnull(msg);
- wayc_notnull(file);
- wayc_notnull(func);
-
- (void)user;
-
- fprintf(stderr, "[%s:%d:%s] %s (%d, %d)\n", file, line, func, msg, x, y);
-}
-
enum graphics_error_e wayc_graphics_init(struct graphics_s* graphics,
struct wlstate_s* state) {
wayc_notnull(graphics);
@@ -144,12 +131,7 @@ enum renderer_error_e wayc_renderer_init(struct renderer_s* renderer,
return RENDERER_ERROR_LOAD_FUNCTIONS;
}
- sg_logger logger = {};
- logger.func = wayc_sokol_log;
-
sg_desc desc = {};
- desc.logger = logger;
-
sg_setup(&desc);
return RENDERER_ERROR_NONE;