# HG changeset patch # User reimar # Date 1337528501 0 # Node ID 4e749c1bbf49d16bc3a0fbb39d03ec31dd576a5c # Parent 8dd474c27a8dae5b277887aef7bb4b1dba2c1810 Make a glGetError function pointer available. diff -r 8dd474c27a8d -r 4e749c1bbf49 libvo/gl_common.c --- 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), diff -r 8dd474c27a8d -r 4e749c1bbf49 libvo/gl_common.h --- 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);