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