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

ib subversion at mplayerhq.hu
Sun May 26 14:41:09 CEST 2013


Author: ib
Date: Sun May 26 14:41:09 2013
New Revision: 36287

Log:
Define new_gpu_program() conditionally.

It won't be used else.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sun May 26 14:40:44 2013	(r36286)
+++ trunk/libvo/gl_common.c	Sun May 26 14:41:09 2013	(r36287)
@@ -1623,6 +1623,7 @@ static const char vertex_shader[] =
   "  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 @@ static GLuint new_gpu_program(void) {
   mpglDeleteShader(shader);
   return program;
 }
+#endif
 
 static const char def_frag_shader[] =
   "precision mediump float;\n"


More information about the MPlayer-cvslog mailing list