From 7ecdbad4f12171a21a78e099fb577f5dc79a5765 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 11 Jun 2022 11:26:43 +0300 Subject: [PATCH] wayland: Sync DmaBufAttributes --- src/dmabuftexture.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dmabuftexture.h b/src/dmabuftexture.h index ee7195ef0a..17ad26c951 100644 --- a/src/dmabuftexture.h +++ b/src/dmabuftexture.h @@ -16,15 +16,15 @@ class GLTexture; struct DmaBufAttributes { - int planeCount; - int width; - int height; - int format; - uint64_t modifier; + int planeCount = 0; + int width = 0; + int height = 0; + uint32_t format = 0; + uint64_t modifier = 0; - int fd[4]; - int offset[4]; - int pitch[4]; + int fd[4] = {-1, -1, -1, -1}; + int offset[4] = {0, 0, 0, 0}; + int pitch[4] = {0, 0, 0, 0}; }; class KWIN_EXPORT DmaBufTexture