Improvement: --resize-damage

- Add --resize-damage to enlarge/shrink repaint region by a specific
  number of pixels, used for solving the line corruption issue with
  blur. Thanks to Nuck and jerri in #104 for reporting.

- Fix the memory leak of blur shader string.
This commit is contained in:
Richard Grenville
2013-04-27 11:43:11 +08:00
parent c93d8830ff
commit 8113e4e3b4
4 changed files with 69 additions and 5 deletions

View File

@ -246,6 +246,7 @@ glx_init_blur(session_t *ps) {
#endif
}
ps->glx_frag_shader_blur = glx_create_shader(GL_FRAGMENT_SHADER, shader_str);
free(shader_str);
}
if (!ps->glx_frag_shader_blur) {