1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

gl_common: add SGI_video_sync extension

This commit is contained in:
wm4 2014-08-15 23:36:10 +02:00
parent 4a297554bc
commit db65151890
2 changed files with 11 additions and 0 deletions

View File

@ -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),

View File

@ -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 */