From 8494fdadaeb25b3c1a42c71559be5bd74d1d4638 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Jul 2017 20:14:48 +0200 Subject: 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. --- video/out/opengl/utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'video/out/opengl/utils.h') 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 + #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); -- cgit v1.2.3