From 84d16fed8e365219e45bc6570376337f42500727 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 26 Feb 2015 17:13:04 -0800 Subject: [PATCH] libobs-opengl: Assign texture units to shader vars Texture units were not being properly associated with the shader uniform variables. --- libobs-opengl/gl-shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libobs-opengl/gl-shader.c b/libobs-opengl/gl-shader.c index 5313efe9d..b2778074a 100644 --- a/libobs-opengl/gl-shader.c +++ b/libobs-opengl/gl-shader.c @@ -487,6 +487,7 @@ static void program_set_param_data(struct gs_program *program, } } else if (pp->param->type == GS_SHADER_PARAM_TEXTURE) { + glUniform1i(pp->obj, pp->param->texture_id); device_load_texture(program->device, pp->param->texture, pp->param->texture_id); }