From 6d3f3b930077d3c1b39106481fe21ee25b9a6a0e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 13 Jan 2020 15:26:48 +0100 Subject: render/gles2: unbind textures after use Keeping textures bound results in hard-to-debug situations where some GL operations incorrectly affect the texture. --- render/gles2/renderer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render/gles2/renderer.c') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index b5855d4e..65c2b801 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -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; } -- cgit v1.2.3