mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Remove C99-style initializers from the polymer program bits.
git-svn-id: https://svn.eduke32.com/eduke32@1160 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a562568daf
commit
31c1db57d7
1 changed files with 27 additions and 27 deletions
|
@ -125,33 +125,33 @@ int lightcount;
|
||||||
// PROGRAMS
|
// PROGRAMS
|
||||||
_prprogrambit prprogrambits[PR_BIT_COUNT] = {
|
_prprogrambit prprogrambits[PR_BIT_COUNT] = {
|
||||||
{
|
{
|
||||||
.bit = 1 << PR_BIT_DIFFUSE_MODULATION,
|
1 << PR_BIT_DIFFUSE_MODULATION,
|
||||||
.vert_def =
|
// vert_def
|
||||||
"",
|
"",
|
||||||
.vert_prog =
|
// vert_prog
|
||||||
"gl_FrontColor = gl_Color;\n"
|
"gl_FrontColor = gl_Color;\n"
|
||||||
"\n",
|
"\n",
|
||||||
.frag_def =
|
// frag_def
|
||||||
"",
|
"",
|
||||||
.frag_prog =
|
// frag_prog
|
||||||
" result *= vec4(gl_Color);\n"
|
" result *= vec4(gl_Color);\n"
|
||||||
"\n",
|
"\n",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.bit = 1 << PR_BIT_DEFAULT,
|
1 << PR_BIT_DEFAULT,
|
||||||
.vert_def =
|
// vert_def
|
||||||
"\n"
|
"\n"
|
||||||
"void main(void)\n"
|
"void main(void)\n"
|
||||||
"{\n",
|
"{\n",
|
||||||
.vert_prog =
|
// vert_prog
|
||||||
" gl_Position = ftransform();\n"
|
" gl_Position = ftransform();\n"
|
||||||
"}\n",
|
"}\n",
|
||||||
.frag_def =
|
// frag_def
|
||||||
"void main(void)\n"
|
"void main(void)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" vec4 result = vec4(1.0, 1.0, 1.0, 1.0);\n"
|
" vec4 result = vec4(1.0, 1.0, 1.0, 1.0);\n"
|
||||||
"\n",
|
"\n",
|
||||||
.frag_prog =
|
// frag_prog
|
||||||
" gl_FragColor = result;\n"
|
" gl_FragColor = result;\n"
|
||||||
"}\n",
|
"}\n",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue