diff --git a/src/gui/rhi/qrhi_p_p.h b/src/gui/rhi/qrhi_p_p.h index cf725632f4..1706ab131c 100644 --- a/src/gui/rhi/qrhi_p_p.h +++ b/src/gui/rhi/qrhi_p_p.h @@ -292,7 +292,7 @@ public: static BufferOp dynamicUpdate(QRhiBuffer *buf, int offset, int size, const void *data) { - BufferOp op; + BufferOp op = {}; op.type = DynamicUpdate; op.buf = buf; op.offset = offset; @@ -302,7 +302,7 @@ public: static BufferOp staticUpload(QRhiBuffer *buf, int offset, int size, const void *data) { - BufferOp op; + BufferOp op = {}; op.type = StaticUpload; op.buf = buf; op.offset = offset; @@ -312,7 +312,7 @@ public: static BufferOp read(QRhiBuffer *buf, int offset, int size, QRhiBufferReadbackResult *result) { - BufferOp op; + BufferOp op = {}; op.type = Read; op.buf = buf; op.offset = offset; @@ -344,7 +344,7 @@ public: static TextureOp upload(QRhiTexture *tex, const QRhiTextureUploadDescription &desc) { - TextureOp op; + TextureOp op = {}; op.type = Upload; op.dst = tex; for (auto it = desc.cbeginEntries(), itEnd = desc.cendEntries(); it != itEnd; ++it) @@ -354,7 +354,7 @@ public: static TextureOp copy(QRhiTexture *dst, QRhiTexture *src, const QRhiTextureCopyDescription &desc) { - TextureOp op; + TextureOp op = {}; op.type = Copy; op.dst = dst; op.src = src; @@ -364,7 +364,7 @@ public: static TextureOp read(const QRhiReadbackDescription &rb, QRhiReadbackResult *result) { - TextureOp op; + TextureOp op = {}; op.type = Read; op.rb = rb; op.result = result; @@ -373,7 +373,7 @@ public: static TextureOp genMips(QRhiTexture *tex, int layer) { - TextureOp op; + TextureOp op = {}; op.type = GenMips; op.dst = tex; op.layer = layer;