aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/egl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/egl.c b/render/egl.c
index e3839c7d..0c25e036 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -124,8 +124,8 @@ static void init_dmabuf_formats(struct wlr_egl *egl) {
for (int i = 0; i < formats_len; i++) {
uint32_t fmt = formats[i];
- uint64_t *modifiers;
- EGLBoolean *external_only;
+ uint64_t *modifiers = NULL;
+ EGLBoolean *external_only = NULL;
int modifiers_len = 0;
if (!no_modifiers) {
modifiers_len = get_egl_dmabuf_modifiers(egl, fmt, &modifiers, &external_only);