mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
render/gles2: unbind textures after use
Keeping textures bound results in hard-to-debug situations where some GL operations incorrectly affect the texture.
This commit is contained in:
parent
2b04857343
commit
6d3f3b9300
2 changed files with 8 additions and 0 deletions
|
|
@ -163,6 +163,8 @@ static bool gles2_render_texture_with_matrix(struct wlr_renderer *wlr_renderer,
|
|||
|
||||
draw_quad();
|
||||
|
||||
glBindTexture(texture->target, 0);
|
||||
|
||||
POP_GLES2_DEBUG;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue