summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-07-10 22:52:39 +0200
committerNiklas Haas <git@haasn.xyz>2017-07-27 23:45:17 +0200
commitf1af6e53f0b043cac2d3f1024d7d91785072f237 (patch)
tree9a0acb7243e78a83054cb71a7ce278c3d0a3271c /DOCS
parentea76f79e5d89f54cf1b8e78d5c1d71bfce69d958 (diff)
downloadmpv-f1af6e53f0b043cac2d3f1024d7d91785072f237.tar.bz2
mpv-f1af6e53f0b043cac2d3f1024d7d91785072f237.tar.xz
vo_opengl: slightly refactor user_shaders code
- Each struct tex_hook now stores multiple hooks, this allows us to avoid the awkward way of the current code has to add the same pass multiple times. - As a consequence, SHADER_MAX_HOOKS was split up into SHADER_MAX_PASSES (number of tex_hooks) and SHADER_MAX_HOOKS (number of hooked textures per tex_hook), and both numbers decreased correspondingly. - Instead of having a weird free() callback, we can just leverage talloc's recursive free behavior. The only user is the user shaders code anyway.
Diffstat (limited to 'DOCS')
0 files changed, 0 insertions, 0 deletions