Mercurial > mplayer.hg
changeset 34841:4e749c1bbf49
Make a glGetError function pointer available.
author | reimar |
---|---|
date | Sun, 20 May 2012 15:41:41 +0000 |
parents | 8dd474c27a8d |
children | a31ac47eba39 |
files | libvo/gl_common.c libvo/gl_common.h |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/gl_common.c Sun May 20 15:33:58 2012 +0000 +++ b/libvo/gl_common.c Sun May 20 15:41:41 2012 +0000 @@ -44,6 +44,7 @@ #include "aspect.h" #include "pnm_loader.h" +GLenum (GLAPIENTRY *mpglGetError)(void); void (GLAPIENTRY *mpglBegin)(GLenum); void (GLAPIENTRY *mpglEnd)(void); void (GLAPIENTRY *mpglViewport)(GLint, GLint, GLsizei, GLsizei); @@ -402,6 +403,7 @@ static const extfunc_desc_t extfuncs[] = { // these aren't extension functions but we query them anyway to allow // different "backends" with one binary + DEF_FUNC_DESC(GetError), DEF_FUNC_DESC(Begin), DEF_FUNC_DESC(End), DEF_FUNC_DESC(Viewport),
--- a/libvo/gl_common.h Sun May 20 15:33:58 2012 +0000 +++ b/libvo/gl_common.h Sun May 20 15:41:41 2012 +0000 @@ -446,6 +446,7 @@ int init_mpglcontext(MPGLContext *ctx, enum MPGLType type); void uninit_mpglcontext(MPGLContext *ctx); +extern GLenum (GLAPIENTRY *mpglGetError)(void); extern void (GLAPIENTRY *mpglBegin)(GLenum); extern void (GLAPIENTRY *mpglEnd)(void); extern void (GLAPIENTRY *mpglViewport)(GLint, GLint, GLsizei, GLsizei);