]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix two-layer quake sky in r_glsl 1 mode (was blending the alpha layer wrongly)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 1 Mar 2008 04:54:54 +0000 (04:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 1 Mar 2008 04:54:54 +0000 (04:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8165 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index fae73614a0947c75eb440a12e82d43d18ac8e192..c503245a21117296c4780646b9781da62531fde7 100644 (file)
@@ -546,7 +546,7 @@ static const char *builtinshaderstring =
 "      gl_FragColor += tex2;\n"
 "#  endif\n"
 "#  ifdef USEVERTEXTEXTUREBLEND\n"
-"      gl_FragColor = mix(tex2, gl_FragColor, tex2.a);\n"
+"      gl_FragColor = mix(gl_FragColor, tex2, tex2.a);\n"
 "#  endif\n"
 "}\n"
 "# endif\n"