[vlc-devel] [PATCH 4/5] opengl: add glTexture1D
Louis Régnier
louis.videolabs at gmail.com
Fri Aug 28 18:49:38 CEST 2020
---
modules/video_output/opengl/gl_api.c | 1 +
modules/video_output/opengl/gl_common.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/modules/video_output/opengl/gl_api.c b/modules/video_output/opengl/gl_api.c
index fa0e4107b2..a4b0b5f11d 100644
--- a/modules/video_output/opengl/gl_api.c
+++ b/modules/video_output/opengl/gl_api.c
@@ -73,6 +73,7 @@ vlc_gl_api_Init(struct vlc_gl_api *api, vlc_gl_t *gl)
GET_PROC_ADDR_CORE(GetIntegeri_v);
GET_PROC_ADDR_CORE(GetString);
GET_PROC_ADDR_CORE(PixelStorei);
+ GET_PROC_ADDR_CORE(TexImage1D);
GET_PROC_ADDR_CORE(TexImage2D);
GET_PROC_ADDR_CORE(TexParameterf);
GET_PROC_ADDR_CORE(TexParameteri);
diff --git a/modules/video_output/opengl/gl_common.h b/modules/video_output/opengl/gl_common.h
index 5b9fd20029..c43f9854c7 100644
--- a/modules/video_output/opengl/gl_common.h
+++ b/modules/video_output/opengl/gl_common.h
@@ -204,6 +204,7 @@ typedef const GLubyte *(APIENTRY *PFNGLGETSTRINGPROC) (GLenum name);
typedef void (APIENTRY *PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params);
typedef void (APIENTRY *PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
typedef void (APIENTRY *PFNGLTEXENVFPROC)(GLenum target, GLenum pname, GLfloat param);
+typedef void (APIENTRY *PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
typedef void (APIENTRY *PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
typedef void (APIENTRY *PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
typedef void (APIENTRY *PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
@@ -286,6 +287,7 @@ typedef struct {
PFNGLGETINTEGERIVPROC GetIntegeri_v;
PFNGLGETSTRINGPROC GetString;
PFNGLPIXELSTOREIPROC PixelStorei;
+ PFNGLTEXIMAGE1DPROC TexImage1D;
PFNGLTEXIMAGE2DPROC TexImage2D;
PFNGLTEXPARAMETERFPROC TexParameterf;
PFNGLTEXPARAMETERIPROC TexParameteri;
--
2.28.0
More information about the vlc-devel
mailing list