gl-renderer: Disable vertex attrib arrays in shadow pass

The blit_shadow_to_output() function leaves the generic vertex attrib
arrays 0 and 1 enabled. This commit disables them for consistency with
the other drawing calls of the renderer.

Signed-off-by: Loïc Molinari <loic.molinari@gmail.com>
This commit is contained in:
Loïc Molinari 2023-01-03 20:14:41 +01:00 committed by Derek Foreman
parent 27a2af589d
commit 35b3cb83b0

View file

@ -1699,6 +1699,9 @@ blit_shadow_to_output(struct weston_output *output,
glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
}
glDisableVertexAttribArray(1);
glDisableVertexAttribArray(0);
glBindTexture(GL_TEXTURE_2D, 0);
pixman_region32_fini(&translated_damage);
}