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/utils.h | |
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/utils.h')
-rw-r--r-- | video/out/opengl/utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h index 7e5f8f5931..2a15d85b71 100644 --- a/video/out/opengl/utils.h +++ b/video/out/opengl/utils.h @@ -19,8 +19,10 @@ #ifndef MP_GL_UTILS_ #define MP_GL_UTILS_ +#include <math.h> + #include "common.h" -#include "math.h" +#include "ra.h" struct mp_log; @@ -145,6 +147,8 @@ void gl_sc_paddf(struct gl_shader_cache *sc, const char *textf, ...) PRINTF_ATTRIBUTE(2, 3); void gl_sc_uniform_tex(struct gl_shader_cache *sc, char *name, GLenum target, GLuint texture); +void gl_sc_uniform_texture(struct gl_shader_cache *sc, char *name, + struct ra_tex *tex); void gl_sc_uniform_tex_ui(struct gl_shader_cache *sc, char *name, GLuint texture); void gl_sc_uniform_image2D(struct gl_shader_cache *sc, char *name, GLuint texture, GLuint iformat, GLenum access); |