changeset 36121:60f5fa453719

Minor simplification.
author reimar
date Sat, 04 May 2013 09:44:42 +0000
parents 7cfe91ac8df8
children cf45e1421a71
files libvo/gl_common.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.c	Sat May 04 04:09:21 2013 +0000
+++ b/libvo/gl_common.c	Sat May 04 09:44:42 2013 +0000
@@ -409,8 +409,9 @@
   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 @@
   {&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}
 };