Commit 512ccc62 authored by Frank Meerkoetter's avatar Frank Meerkoetter Committed by Miikka Heikkinen
Browse files

Fix mixup of logical and binary operator


Fixes coverity CID141076.

Change-Id: Ice5f78a0be12424fa0e308c62294f7ef7981ad36
Reviewed-by: default avatarMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Showing with 2 additions and 2 deletions
...@@ -343,7 +343,7 @@ void CanvasGLStateDump::doGLStateDump() ...@@ -343,7 +343,7 @@ void CanvasGLStateDump::doGLStateDump()
} }
#endif #endif
if (m_options && DUMP_VERTEX_ATTRIB_ARRAYS_BIT) { if (m_options & DUMP_VERTEX_ATTRIB_ARRAYS_BIT) {
for (int i = 0; i < m_maxVertexAttribs;i++) { for (int i = 0; i < m_maxVertexAttribs;i++) {
funcs->glGetVertexAttribiv(i, GL_VERTEX_ATTRIB_ARRAY_ENABLED, &vertexAttribArrayEnabledStates[i]); funcs->glGetVertexAttribiv(i, GL_VERTEX_ATTRIB_ARRAY_ENABLED, &vertexAttribArrayEnabledStates[i]);
funcs->glGetVertexAttribiv(i, GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, &vertexAttribArrayBoundBuffers[i]); funcs->glGetVertexAttribiv(i, GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, &vertexAttribArrayBoundBuffers[i]);
...@@ -385,7 +385,7 @@ void CanvasGLStateDump::doGLStateDump() ...@@ -385,7 +385,7 @@ void CanvasGLStateDump::doGLStateDump()
} }
} }
if (m_options && DUMP_VERTEX_ATTRIB_ARRAYS_BUFFERS_BIT) { if (m_options & DUMP_VERTEX_ATTRIB_ARRAYS_BUFFERS_BIT) {
if (boundElementArrayBuffer != 0) { if (boundElementArrayBuffer != 0) {
m_stateDumpStr.append("GL_ELEMENT_ARRAY_BUFFER................"); m_stateDumpStr.append("GL_ELEMENT_ARRAY_BUFFER................");
m_stateDumpStr.append(QString::number(boundElementArrayBuffer)); m_stateDumpStr.append(QString::number(boundElementArrayBuffer));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment