[vlc-commits] opengl: add Uniform2f
Thomas Guillem
git at videolan.org
Thu Feb 2 09:52:50 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 25 16:16:29 2017 +0100| [9a69869dd16ef1fd911f18c051573dbe71e6cfb8] | committer: Thomas Guillem
opengl: add Uniform2f
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a69869dd16ef1fd911f18c051573dbe71e6cfb8
---
modules/video_output/opengl/internal.h | 2 ++
modules/video_output/opengl/vout_helper.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/modules/video_output/opengl/internal.h b/modules/video_output/opengl/internal.h
index 03b4b86..938c972 100644
--- a/modules/video_output/opengl/internal.h
+++ b/modules/video_output/opengl/internal.h
@@ -49,6 +49,7 @@
# define PFNGLUNIFORMMATRIX4FVPROC typeof(glUniformMatrix4fv)*
# define PFNGLUNIFORM4FVPROC typeof(glUniform4fv)*
# define PFNGLUNIFORM4FPROC typeof(glUniform4f)*
+# define PFNGLUNIFORM2FPROC typeof(glUniform2f)*
# define PFNGLUNIFORM1IPROC typeof(glUniform1i)*
# define PFNGLCREATESHADERPROC typeof(glCreateShader)*
# define PFNGLSHADERSOURCEPROC typeof(glShaderSource)*
@@ -90,6 +91,7 @@ typedef struct {
PFNGLUNIFORMMATRIX4FVPROC UniformMatrix4fv;
PFNGLUNIFORM4FVPROC Uniform4fv;
PFNGLUNIFORM4FPROC Uniform4f;
+ PFNGLUNIFORM2FPROC Uniform2f;
PFNGLUNIFORM1IPROC Uniform1i;
/* Shader command */
diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index 07f1964..43effe8 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -482,6 +482,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
api->UniformMatrix4fv = GET_PROC_ADDR(glUniformMatrix4fv);
api->Uniform4fv = GET_PROC_ADDR(glUniform4fv);
api->Uniform4f = GET_PROC_ADDR(glUniform4f);
+ api->Uniform2f = GET_PROC_ADDR(glUniform2f);
api->Uniform1i = GET_PROC_ADDR(glUniform1i);
api->CreateProgram = GET_PROC_ADDR(glCreateProgram);
More information about the vlc-commits
mailing list