remove dual_texture from gl_compose as it is just unconditionally set to false.

This commit is contained in:
Rytis Karpuska 2019-11-06 00:20:14 +02:00
parent 8e0d421ba6
commit 310b66d519
1 changed files with 0 additions and 13 deletions

View File

@ -202,8 +202,6 @@ static void _gl_compose(backend_t *base, struct gl_image *img, GLuint target,
return;
}
bool dual_texture = false;
assert(gd->win_shader.prog);
glUseProgram(gd->win_shader.prog);
if (gd->win_shader.unifm_opacity >= 0) {
@ -224,11 +222,6 @@ static void _gl_compose(backend_t *base, struct gl_image *img, GLuint target,
// Bind texture
glBindTexture(GL_TEXTURE_2D, img->inner->texture);
if (dual_texture) {
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, img->inner->texture);
glActiveTexture(GL_TEXTURE0);
}
GLuint vao;
glGenVertexArrays(1, &vao);
@ -259,12 +252,6 @@ static void _gl_compose(backend_t *base, struct gl_image *img, GLuint target,
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
glDrawBuffer(GL_BACK);
if (dual_texture) {
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, 0);
glActiveTexture(GL_TEXTURE0);
}
glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
glDeleteBuffers(2, bo);