rhi: gl: Silence incorrect compiler warnings about uninitialized use

Change-Id: I09bd22f3ccb1231ad4ef123f581459ef5c1ac37c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Laszlo Agocs 2020-10-08 09:21:52 +02:00
parent 14ddbba298
commit 56af9fb917

View File

@ -2157,9 +2157,9 @@ void QRhiGles2::executeCommandBuffer(QRhiCommandBuffer *cb)
GLuint currentElementArrayBuffer = 0; GLuint currentElementArrayBuffer = 0;
struct { struct {
QRhiGraphicsPipeline *ps = nullptr; QRhiGraphicsPipeline *ps = nullptr;
GLuint buffer; GLuint buffer = 0;
quint32 offset; quint32 offset = 0;
int binding; int binding = 0;
} lastBindVertexBuffer; } lastBindVertexBuffer;
static const int TRACKED_ATTRIB_COUNT = 16; static const int TRACKED_ATTRIB_COUNT = 16;
bool enabledAttribArrays[TRACKED_ATTRIB_COUNT]; bool enabledAttribArrays[TRACKED_ATTRIB_COUNT];