diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-10-08 09:21:52 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-10-08 11:01:11 +0200 |
commit | 56af9fb917b811a4e98c92364c6953f7f58adc45 (patch) | |
tree | 860ce90adf2e6349dfb56debb8d7103b4ea13a76 /src/gui/rhi/qrhigles2.cpp | |
parent | 14ddbba298284685031701591dee1743fecdd7f2 (diff) |
rhi: gl: Silence incorrect compiler warnings about uninitialized use
Change-Id: I09bd22f3ccb1231ad4ef123f581459ef5c1ac37c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhigles2.cpp')
-rw-r--r-- | src/gui/rhi/qrhigles2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/rhi/qrhigles2.cpp b/src/gui/rhi/qrhigles2.cpp index dc1755ace6..3d47a71d31 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]; |