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;
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];