[MPlayer-cvslog] r34929 - in trunk/libvo: gl_common.c gl_common.h
reimar
subversion at mplayerhq.hu
Sun May 20 17:41:41 CEST 2012
Author: reimar
Date: Sun May 20 17:41:41 2012
New Revision: 34929
Log:
Make a glGetError function pointer available.
Modified:
trunk/libvo/gl_common.c
trunk/libvo/gl_common.h
Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c Sun May 20 17:33:58 2012 (r34928)
+++ trunk/libvo/gl_common.c Sun May 20 17:41:41 2012 (r34929)
@@ -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 @@ typedef struct {
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),
Modified: trunk/libvo/gl_common.h
==============================================================================
--- trunk/libvo/gl_common.h Sun May 20 17:33:58 2012 (r34928)
+++ trunk/libvo/gl_common.h Sun May 20 17:41:41 2012 (r34929)
@@ -446,6 +446,7 @@ typedef struct MPGLContext {
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);
More information about the MPlayer-cvslog
mailing list