summaryrefslogtreecommitdiff
path: root/src/wlstate.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-11 18:09:20 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-11 18:09:20 +0100
commitc919417673520e95c149e79270155d798eb613d7 (patch)
tree3a31fdb78269df039810bf92d851a88ac9171d50 /src/wlstate.cc
parent3e3ffdfe8de8b5bdda7f479d2ae198821b65a9dd (diff)
working on textures and samplers
Diffstat (limited to 'src/wlstate.cc')
-rw-r--r--src/wlstate.cc6
1 files changed, 3 insertions, 3 deletions
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;
}