提交 84d16fed 编写于 作者: J jp9000

libobs-opengl: Assign texture units to shader vars

Texture units were not being properly associated with the shader uniform
variables.
上级 2a06beea
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册