From c919417673520e95c149e79270155d798eb613d7 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Wed, 11 Feb 2026 18:09:20 +0100 Subject: working on textures and samplers --- src/wlstate.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wlstate.cc') diff --git a/src/wlstate.cc b/src/wlstate.cc index 940a011..0e65e38 100644 --- a/src/wlstate.cc +++ b/src/wlstate.cc @@ -64,8 +64,8 @@ enum wlstate_error_e wayc_wlstate_init(struct wlstate_s* state) { wayc_notnull(state); memset(state, 0, sizeof(*state)); - wl_display_t display = wl_display_connect(NULL); - if (display == NULL) return WLSTATE_ERROR_CONNECTION; + wl_display_t display = wl_display_connect(nullptr); + if (display == nullptr) return WLSTATE_ERROR_CONNECTION; i32 eventfd = wl_display_get_fd(display); if (eventfd == -1) { @@ -74,7 +74,7 @@ enum wlstate_error_e wayc_wlstate_init(struct wlstate_s* state) { } wl_registry_t registry = wl_display_get_registry(display); - if (registry == NULL) { + if (registry == nullptr) { wl_display_disconnect(display); return WLSTATE_ERROR_REGISTRY; } -- cgit v1.2.3