diff options
author | wm4 <wm4@nowhere> | 2017-07-29 20:14:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-07-29 20:14:48 +0200 |
commit | 8494fdadaeb25b3c1a42c71559be5bd74d1d4638 (patch) | |
tree | da93683844c45e1fec754c68dc19c99d167562f2 /video/out/opengl/ra.c | |
parent | 0f9fcf0ed4ecb54eaadbddd3cbbc14d39ab93227 (diff) | |
download | mpv-8494fdadaeb25b3c1a42c71559be5bd74d1d4638.tar.bz2 mpv-8494fdadaeb25b3c1a42c71559be5bd74d1d4638.tar.xz |
vo_opengl: manage dither texture via ra
Also add some more helpers.
Fix the broken math.h include statement.
utils.c uses ra_gl.h internals, which it shouldn't, and which will be
removed again as soon as this code gets converted to ra fully.
Diffstat (limited to 'video/out/opengl/ra.c')
-rw-r--r-- | video/out/opengl/ra.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/video/out/opengl/ra.c b/video/out/opengl/ra.c index df27f723c2..57734afd81 100644 --- a/video/out/opengl/ra.c +++ b/video/out/opengl/ra.c @@ -4,6 +4,18 @@ #include "ra.h" +struct ra_tex *ra_tex_create(struct ra *ra, const struct ra_tex_params *params) +{ + return ra->fns->tex_create(ra, params); +} + +void ra_tex_free(struct ra *ra, struct ra_tex **tex) +{ + if (*tex) + ra->fns->tex_destroy(ra, *tex); + *tex = NULL; +} + // Return whether this is a tightly packed format with no external padding and // with the same bit size/depth in all components. static bool ra_format_is_regular(const struct ra_format *fmt) |