From 56af9fb917b811a4e98c92364c6953f7f58adc45 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 8 Oct 2020 09:21:52 +0200 Subject: [PATCH] rhi: gl: Silence incorrect compiler warnings about uninitialized use Change-Id: I09bd22f3ccb1231ad4ef123f581459ef5c1ac37c Reviewed-by: Friedemann Kleint --- src/gui/rhi/qrhigles2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/rhi/qrhigles2.cpp b/src/gui/rhi/qrhigles2.cpp index dc1755ace6a..3d47a71d314 100644 --- a/src/gui/rhi/qrhigles2.cpp +++ b/src/gui/rhi/qrhigles2.cpp @@ -2157,9 +2157,9 @@ void QRhiGles2::executeCommandBuffer(QRhiCommandBuffer *cb) GLuint currentElementArrayBuffer = 0; struct { QRhiGraphicsPipeline *ps = nullptr; - GLuint buffer; - quint32 offset; - int binding; + GLuint buffer = 0; + quint32 offset = 0; + int binding = 0; } lastBindVertexBuffer; static const int TRACKED_ATTRIB_COUNT = 16; bool enabledAttribArrays[TRACKED_ATTRIB_COUNT];