|
|
@ -140,8 +140,8 @@ void RasterizerOpenGL::SetupVertexFormat() { |
|
|
const auto attrib = gpu.regs.vertex_attrib_format[index]; |
|
|
const auto attrib = gpu.regs.vertex_attrib_format[index]; |
|
|
const auto gl_index = static_cast<GLuint>(index); |
|
|
const auto gl_index = static_cast<GLuint>(index); |
|
|
|
|
|
|
|
|
// Ignore invalid attributes.
|
|
|
|
|
|
if (!attrib.IsValid()) { |
|
|
|
|
|
|
|
|
// Disable constant attributes.
|
|
|
|
|
|
if (attrib.IsConstant()) { |
|
|
glDisableVertexAttribArray(gl_index); |
|
|
glDisableVertexAttribArray(gl_index); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
|