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:
parent
14ddbba298
commit
56af9fb917
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user