mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-01 20:18:35 +00:00
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:
parent
27a2af589d
commit
35b3cb83b0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue