diff options
author | wm4 <wm4@nowhere> | 2017-08-04 13:48:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-05 13:09:05 +0200 |
commit | a796745fd272701c9ed435337a161f643d34a26a (patch) | |
tree | 058da9d1be62c4a65e9881aa751897e19cae2f94 /video/out/opengl/ra.c | |
parent | 90b53fede618772d39ff964b12e6403d71f7f235 (diff) | |
download | mpv-a796745fd272701c9ed435337a161f643d34a26a.tar.bz2 mpv-a796745fd272701c9ed435337a161f643d34a26a.tar.xz |
vo_opengl: make fbotex helper use ra
Further work removing GL dependencies from the actual video renderer,
and moving them into ra backends.
Use of glInvalidateFramebuffer() falls away. I'd like to keep this, but
it's better to readd it once shader runs are in ra.
Diffstat (limited to 'video/out/opengl/ra.c')
-rw-r--r-- | video/out/opengl/ra.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/opengl/ra.c b/video/out/opengl/ra.c index 73f2915f95..9096a50148 100644 --- a/video/out/opengl/ra.c +++ b/video/out/opengl/ra.c @@ -80,6 +80,15 @@ const struct ra_format *ra_find_float16_format(struct ra *ra, int n_components) return NULL; } +const struct ra_format *ra_find_named_format(struct ra *ra, const char *name) +{ + for (int n = 0; n < ra->num_formats; n++) { + const struct ra_format *fmt = ra->formats[n]; + if (strcmp(fmt->name, name) == 0) + return fmt; + } + return NULL; +} // Like ra_find_unorm_format(), but if no fixed point format is available, // return an unsigned integer format. |