From bc6aebe0f6b91f80cf90cecbf6c03e84e964e05e Mon Sep 17 00:00:00 2001 From: Elie Tournier Date: Fri, 22 May 2020 10:22:12 +0100 Subject: [PATCH] blitter: Remove unused sample location Signed-off-by: Elie Tournier Reviewed-by: Gert Wollny --- src/vrend_blitter.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c index ad1123f..e9f2861 100644 --- a/src/vrend_blitter.c +++ b/src/vrend_blitter.c @@ -705,7 +705,6 @@ void vrend_renderer_blit_gl(MAYBE_UNUSED struct vrend_context *ctx, GLint lret; GLenum filter; GLuint pos_loc, tc_loc; - GLuint samp_loc; bool has_depth, has_stencil; bool blit_stencil, blit_depth; int dst_z; @@ -821,11 +820,9 @@ void vrend_renderer_blit_gl(MAYBE_UNUSED struct vrend_context *ctx, glTexParameterf(src_res->target, GL_TEXTURE_MAG_FILTER, filter); glTexParameterf(src_res->target, GL_TEXTURE_MIN_FILTER, filter); } + pos_loc = glGetAttribLocation(prog_id, "arg0"); tc_loc = glGetAttribLocation(prog_id, "arg1"); - samp_loc = glGetUniformLocation(prog_id, "samp"); - - glUniform1i(samp_loc, 0); glVertexAttribPointer(pos_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void *)0); glVertexAttribPointer(tc_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void *)(4 * sizeof(float)));