[MPlayer-cvslog] r36215 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Sat May 4 11:44:42 CEST 2013


Author: reimar
Date: Sat May  4 11:44:42 2013
New Revision: 36215

Log:
Minor simplification.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sat May  4 06:09:21 2013	(r36214)
+++ trunk/libvo/gl_common.c	Sat May  4 11:44:42 2013	(r36215)
@@ -409,8 +409,9 @@ typedef struct {
   void *fallback;
 } extfunc_desc_t;
 
+#define SIMPLE_FUNC_DESC(name) {&mpgl##name, NULL, {"gl"#name, NULL}, NULL}
 #if !defined(CONFIG_GL_WIN32) && !defined(CONFIG_GL_X11)
-#define DEF_FUNC_DESC(name) {&mpgl##name, NULL, {"gl"#name, NULL}, NULL}
+#define DEF_FUNC_DESC(name) SIMPLE_FUNC_DESC(name)
 #else
 #define DEF_FUNC_DESC(name) {&mpgl##name, NULL, {"gl"#name, NULL}, gl ##name}
 #endif
@@ -499,12 +500,12 @@ static const extfunc_desc_t extfuncs[] =
   {&mpglFreeMemoryMESA, "GLX_MESA_allocate_memory", {"glXFreeMemoryMESA", NULL}},
 
   // Things needed to run on GLES
-  {&mpglVertexPointer, NULL, {"glVertexPointer", NULL}},
-  {&mpglTexCoordPointer, NULL, {"glTexCoordPointer", NULL}},
-  {&mpglClientActiveTexture, NULL, {"glClientActiveTexture", NULL}},
-  {&mpglEnableClientState, NULL, {"glEnableClientState", NULL}},
-  {&mpglDisableClientState, NULL, {"glDisableClientState", NULL}},
-  {&mpglDrawArrays, NULL, {"glDrawArrays", NULL}},
+  SIMPLE_FUNC_DESC(VertexPointer),
+  SIMPLE_FUNC_DESC(TexCoordPointer),
+  SIMPLE_FUNC_DESC(ClientActiveTexture),
+  SIMPLE_FUNC_DESC(EnableClientState),
+  SIMPLE_FUNC_DESC(DisableClientState),
+  SIMPLE_FUNC_DESC(DrawArrays),
   {NULL}
 };
 


More information about the MPlayer-cvslog mailing list