gl_common: no need to get "opacity" uniform for dummy shader
Prevent a useless error message from glGetUniformLocationChecked, as "opacity" is not used by the dummy shader, we will fail to get its location. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
4247d4cf78
commit
c2938ad4d9
|
@ -1092,7 +1092,7 @@ void *gl_create_blur_context(backend_t *base, enum blur_method method, void *arg
|
|||
// the single pass case
|
||||
auto pass = &ctx->blur_shader[1];
|
||||
pass->prog = gl_create_program_from_str(vertex_shader, dummy_frag);
|
||||
pass->unifm_opacity = glGetUniformLocationChecked(pass->prog, "opacity");
|
||||
pass->unifm_opacity = -1;
|
||||
pass->orig_loc = glGetUniformLocationChecked(pass->prog, "orig");
|
||||
pass->texorig_loc = glGetUniformLocationChecked(pass->prog, "texorig");
|
||||
ctx->npasses = 2;
|
||||
|
|
Loading…
Reference in New Issue