From db65151890023e5b30fb8fb2423d4708802bb1df Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Aug 2014 23:36:10 +0200 Subject: gl_common: add SGI_video_sync extension --- video/out/gl_common.c | 8 ++++++++ video/out/gl_common.h | 3 +++ 2 files changed, 11 insertions(+) (limited to 'video') diff --git a/video/out/gl_common.c b/video/out/gl_common.c index dd90bee322..1f1f02d4a3 100644 --- a/video/out/gl_common.c +++ b/video/out/gl_common.c @@ -341,6 +341,14 @@ static const struct gl_functions gl_functions[] = { {0} }, }, + { + .extension = "GLX_SGI_video_sync", + .functions = (struct gl_function[]) { + DEF_FN_NAMES(GetVideoSync, "glXGetVideoSyncSGI"), + DEF_FN_NAMES(WaitVideoSync, "glXWaitVideoSyncSGI"), + {0}, + }, + }, // GL legacy functions in GL 1.x - 2.x, removed from GL 3.x { .ver_core = MPGL_VER(1, 1), diff --git a/video/out/gl_common.h b/video/out/gl_common.h index 75ff0d5dfd..2c6ae92224 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -368,6 +368,9 @@ struct GL { void (GLAPIENTRY *VDPAUSurfaceAccessNV)(GLvdpauSurfaceNV, GLenum); void (GLAPIENTRY *VDPAUMapSurfacesNV)(GLsizei, const GLvdpauSurfaceNV *); void (GLAPIENTRY *VDPAUUnmapSurfacesNV)(GLsizei, const GLvdpauSurfaceNV *); + + GLint (GLAPIENTRY *GetVideoSync)(GLuint *); + GLint (GLAPIENTRY *WaitVideoSync)(GLint, GLint, unsigned int *); }; #endif /* MPLAYER_GL_COMMON_H */ -- cgit v1.2.3