comparison libvo/gl_common.c @ 36132:17b5ef08fdaa

Add a const. It can help some compilers optimize.
author reimar
date Sat, 04 May 2013 20:01:38 +0000
parents 08f70b06452c
children 2b742d298c68
comparison
equal deleted inserted replaced
36131:08f70b06452c 36132:17b5ef08fdaa
1637 static const char yuv_frag_shader[] = 1637 static const char yuv_frag_shader[] =
1638 "precision mediump float;\n" 1638 "precision mediump float;\n"
1639 "uniform sampler2D texs[4];\n" 1639 "uniform sampler2D texs[4];\n"
1640 "varying vec2 tcv, tcv2;\n" 1640 "varying vec2 tcv, tcv2;\n"
1641 "void main() {\n" 1641 "void main() {\n"
1642 " mat4 yuv_conv = mat4(\n" 1642 " const mat4 yuv_conv = mat4(\n"
1643 " 1.164000e+00, 1.164000e+00, 1.164000e+00, 0,\n" 1643 " 1.164000e+00, 1.164000e+00, 1.164000e+00, 0,\n"
1644 " 0.000000e+00, -3.910000e-01, 2.018000e+00, 0,\n" 1644 " 0.000000e+00, -3.910000e-01, 2.018000e+00, 0,\n"
1645 " 1.596000e+00, -8.130000e-01, 0.000000e+00, 0,\n" 1645 " 1.596000e+00, -8.130000e-01, 0.000000e+00, 0,\n"
1646 " -8.741648e-01, 5.313256e-01, -1.085992e+00, 1\n" 1646 " -8.741648e-01, 5.313256e-01, -1.085992e+00, 1\n"
1647 " );\n" 1647 " );\n"