backend: gl: fix gl_present not using the correct texture unit

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-04-06 02:37:13 +01:00
parent d8c34ed4f7
commit 70a703df43
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 0 deletions

View File

@ -1176,6 +1176,7 @@ void gl_present(backend_t *base, const region_t *region) {
}
glUseProgram(gd->present_prog);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, gd->back_texture);
GLuint vao;