vk_rasterizer: Workaround bug in VK_EXT_vertex_input_dynamic_state

Workaround potential bug on Nvidia's driver where only updating high
attributes leaves low attributes out dated.
This commit is contained in:
ReinUsesLisp 2021-06-26 17:46:01 -03:00 committed by ameerj
parent b48b4b0600
commit 934b23ab85
4 changed files with 20 additions and 19 deletions

View file

@ -97,7 +97,7 @@ void RasterizerOpenGL::SyncVertexFormats() {
const auto gl_index = static_cast<GLuint>(index);
// Disable constant attributes.
if (attrib.IsConstant()) {
if (attrib.constant) {
glDisableVertexAttribArray(gl_index);
continue;
}