Fix compiler warning about unused parameters

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-07-25 02:27:02 +01:00
parent c3c0578d14
commit bb756b2238
15 changed files with 122 additions and 90 deletions

View File

@ -208,7 +208,7 @@ glx_init_end:
return success;
}
static void glx_free_prog_main(session_t *ps, glx_prog_main_t *pprogram) {
static void glx_free_prog_main(glx_prog_main_t *pprogram) {
if (!pprogram)
return;
if (pprogram->prog) {
@ -242,7 +242,7 @@ void glx_destroy(session_t *ps) {
}
free(ps->psglx->blur_passes);
glx_free_prog_main(ps, &ps->glx_prog_win);
glx_free_prog_main(&ps->glx_prog_win);
gl_check_err();
@ -419,7 +419,7 @@ bool glx_init_blur(session_t *ps) {
/**
* Load a GLSL main program from shader strings.
*/
bool glx_load_prog_main(session_t *ps, const char *vshader_str, const char *fshader_str,
bool glx_load_prog_main(const char *vshader_str, const char *fshader_str,
glx_prog_main_t *pprogram) {
assert(pprogram);
@ -662,7 +662,7 @@ void glx_set_clip(session_t *ps, const region_t *reg) {
\
pixman_region32_fini(&reg_new);
static inline GLuint glx_gen_texture(session_t *ps, GLenum tex_tgt, int width, int height) {
static inline GLuint glx_gen_texture(GLenum tex_tgt, int width, int height) {
GLuint tex = 0;
glGenTextures(1, &tex);
if (!tex)
@ -738,10 +738,10 @@ bool glx_blur_dst(session_t *ps, int dx, int dy, int width, int height, float z,
// Generate FBO and textures if needed
if (!pbc->textures[0])
pbc->textures[0] = glx_gen_texture(ps, tex_tgt, mwidth, mheight);
pbc->textures[0] = glx_gen_texture(tex_tgt, mwidth, mheight);
GLuint tex_scr = pbc->textures[0];
if (more_passes && !pbc->textures[1])
pbc->textures[1] = glx_gen_texture(ps, tex_tgt, mwidth, mheight);
pbc->textures[1] = glx_gen_texture(tex_tgt, mwidth, mheight);
pbc->width = mwidth;
pbc->height = mheight;
GLuint tex_scr2 = pbc->textures[1];