comparison libvo/gl_common.c @ 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 927dedf22dde
children 236179a10ee9
comparison
equal deleted inserted replaced
36190:153031444853 36191:16e7d4a1ee59
1621 "void main() {\n" 1621 "void main() {\n"
1622 " gl_Position = matrix * vPos;\n" 1622 " gl_Position = matrix * vPos;\n"
1623 " tcv = tca; tcv2 = tca2; tcv3 = tca3;\n" 1623 " tcv = tca; tcv2 = tca2; tcv3 = tca3;\n"
1624 "}\n"; 1624 "}\n";
1625 1625
1626 #if defined(CONFIG_GL_EGL_X11) || defined(CONFIG_GL_EGL_ANDROID)
1626 static GLuint new_gpu_program(void) { 1627 static GLuint new_gpu_program(void) {
1627 GLuint program = mpglCreateProgram(); 1628 GLuint program = mpglCreateProgram();
1628 GLuint shader = compile_shader(GL_VERTEX_SHADER, vertex_shader); 1629 GLuint shader = compile_shader(GL_VERTEX_SHADER, vertex_shader);
1629 mpglAttachShader(program, shader); 1630 mpglAttachShader(program, shader);
1630 mpglDeleteShader(shader); 1631 mpglDeleteShader(shader);
1631 return program; 1632 return program;
1632 } 1633 }
1634 #endif
1633 1635
1634 static const char def_frag_shader[] = 1636 static const char def_frag_shader[] =
1635 "precision mediump float;\n" 1637 "precision mediump float;\n"
1636 "uniform sampler2D texs[4];\n" 1638 "uniform sampler2D texs[4];\n"
1637 "varying vec2 tcv;\n" 1639 "varying vec2 tcv;\n"