Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
34840:8dd474c27a8d | 34841:4e749c1bbf49 |
---|---|
42 #include "gl_common.h" | 42 #include "gl_common.h" |
43 #include "csputils.h" | 43 #include "csputils.h" |
44 #include "aspect.h" | 44 #include "aspect.h" |
45 #include "pnm_loader.h" | 45 #include "pnm_loader.h" |
46 | 46 |
47 GLenum (GLAPIENTRY *mpglGetError)(void); | |
47 void (GLAPIENTRY *mpglBegin)(GLenum); | 48 void (GLAPIENTRY *mpglBegin)(GLenum); |
48 void (GLAPIENTRY *mpglEnd)(void); | 49 void (GLAPIENTRY *mpglEnd)(void); |
49 void (GLAPIENTRY *mpglViewport)(GLint, GLint, GLsizei, GLsizei); | 50 void (GLAPIENTRY *mpglViewport)(GLint, GLint, GLsizei, GLsizei); |
50 void (GLAPIENTRY *mpglMatrixMode)(GLenum); | 51 void (GLAPIENTRY *mpglMatrixMode)(GLenum); |
51 void (GLAPIENTRY *mpglLoadIdentity)(void); | 52 void (GLAPIENTRY *mpglLoadIdentity)(void); |
400 #define DEF_FUNC_DESC(name) {&mpgl##name, NULL, {"gl"#name, NULL}, gl ##name} | 401 #define DEF_FUNC_DESC(name) {&mpgl##name, NULL, {"gl"#name, NULL}, gl ##name} |
401 #endif | 402 #endif |
402 static const extfunc_desc_t extfuncs[] = { | 403 static const extfunc_desc_t extfuncs[] = { |
403 // these aren't extension functions but we query them anyway to allow | 404 // these aren't extension functions but we query them anyway to allow |
404 // different "backends" with one binary | 405 // different "backends" with one binary |
406 DEF_FUNC_DESC(GetError), | |
405 DEF_FUNC_DESC(Begin), | 407 DEF_FUNC_DESC(Begin), |
406 DEF_FUNC_DESC(End), | 408 DEF_FUNC_DESC(End), |
407 DEF_FUNC_DESC(Viewport), | 409 DEF_FUNC_DESC(Viewport), |
408 DEF_FUNC_DESC(MatrixMode), | 410 DEF_FUNC_DESC(MatrixMode), |
409 DEF_FUNC_DESC(LoadIdentity), | 411 DEF_FUNC_DESC(LoadIdentity), |