Initialize vao variable
If vaoHelper is not valid the vao variable was being initializated with a random value. Change-Id: I44962841baeb1a1cff3124d6126e19c791feaea3 Coverity-Id: 171484 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
5995238f29
commit
dc8933e0aa
@ -410,6 +410,8 @@ struct StateSaver
|
||||
f->glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &arrayBuf);
|
||||
if (vaoHelper->isValid())
|
||||
f->glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &vao);
|
||||
else
|
||||
vao = 0;
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
f->glGetVertexAttribiv(i, GL_VERTEX_ATTRIB_ARRAY_ENABLED, &va[i].enabled);
|
||||
f->glGetVertexAttribiv(i, GL_VERTEX_ATTRIB_ARRAY_SIZE, &va[i].size);
|
||||
|
Loading…
Reference in New Issue
Block a user