diff libvo/gl_common.c @ 34841:4e749c1bbf49

Make a glGetError function pointer available.
author reimar
date Sun, 20 May 2012 15:41:41 +0000
parents f86e300072f0
children a31ac47eba39
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),