Merge pull request #767 from lioncash/logical

GLGSRender: Fix always false error condition
This commit is contained in:
Alexandro Sánchez Bach 2014-08-19 11:25:31 +02:00
commit 475fb0d8c8

View file

@ -203,7 +203,7 @@ void GLGSRender::EnableVertexData(bool indexed_draw)
GL_FALSE,
};
if (m_vertex_data[i].type < 1 && m_vertex_data[i].type > 7) {
if (m_vertex_data[i].type < 1 || m_vertex_data[i].type > 7) {
LOG_ERROR(RSX, "GLGSRender::EnableVertexData: Bad vertex data type (%d)!", m_vertex_data[i].type);
}