From 31c1db57d782554441a6ba80412f9f5127a58ae7 Mon Sep 17 00:00:00 2001 From: plagman Date: Wed, 26 Nov 2008 07:48:24 +0000 Subject: [PATCH] Remove C99-style initializers from the polymer program bits. git-svn-id: https://svn.eduke32.com/eduke32@1160 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 54 ++++++++++++++--------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 9937d86cb..1594b2605 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -125,35 +125,35 @@ int lightcount; // PROGRAMS _prprogrambit prprogrambits[PR_BIT_COUNT] = { { - .bit = 1 << PR_BIT_DIFFUSE_MODULATION, - .vert_def = - "", - .vert_prog = - "gl_FrontColor = gl_Color;\n" - "\n", - .frag_def = - "", - .frag_prog = - " result *= vec4(gl_Color);\n" - "\n", + 1 << PR_BIT_DIFFUSE_MODULATION, + // vert_def + "", + // vert_prog + "gl_FrontColor = gl_Color;\n" + "\n", + // frag_def + "", + // frag_prog + " result *= vec4(gl_Color);\n" + "\n", }, { - .bit = 1 << PR_BIT_DEFAULT, - .vert_def = - "\n" - "void main(void)\n" - "{\n", - .vert_prog = - " gl_Position = ftransform();\n" - "}\n", - .frag_def = - "void main(void)\n" - "{\n" - " vec4 result = vec4(1.0, 1.0, 1.0, 1.0);\n" - "\n", - .frag_prog = - " gl_FragColor = result;\n" - "}\n", + 1 << PR_BIT_DEFAULT, + // vert_def + "\n" + "void main(void)\n" + "{\n", + // vert_prog + " gl_Position = ftransform();\n" + "}\n", + // frag_def + "void main(void)\n" + "{\n" + " vec4 result = vec4(1.0, 1.0, 1.0, 1.0);\n" + "\n", + // frag_prog + " gl_FragColor = result;\n" + "}\n", } };