changeset 36191:16e7d4a1ee59

Define new_gpu_program() conditionally. It won't be used else.
author ib
date Sun, 26 May 2013 12:41:09 +0000
parents 153031444853
children 2e0729818242
files libvo/gl_common.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.c	Sun May 26 12:40:44 2013 +0000
+++ b/libvo/gl_common.c	Sun May 26 12:41:09 2013 +0000
@@ -1623,6 +1623,7 @@
   "  tcv = tca; tcv2 = tca2; tcv3 = tca3;\n"
   "}\n";
 
+#if defined(CONFIG_GL_EGL_X11) || defined(CONFIG_GL_EGL_ANDROID)
 static GLuint new_gpu_program(void) {
   GLuint program = mpglCreateProgram();
   GLuint shader = compile_shader(GL_VERTEX_SHADER, vertex_shader);
@@ -1630,6 +1631,7 @@
   mpglDeleteShader(shader);
   return program;
 }
+#endif
 
 static const char def_frag_shader[] =
   "precision mediump float;\n"