wined3d: Use gl_Color and gl_SecondaryColor to support more varyings in SM3.0 shaders.
commita6fa6a4a318ac8ebb069fffa107ccb7d99a00407
authorH. Verbeet <hverbeet@gmail.com>
Wed, 18 Jun 2008 22:36:35 +0000 (19 00:36 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 19 Jun 2008 09:47:52 +0000 (19 11:47 +0200)
tree25f6f905185dc10ff460d2cde38fef527954aba8
parent4a4ab5f2ae9c4772c6b546dfd7e9d150f34300d1
wined3d: Use gl_Color and gl_SecondaryColor to support more varyings in SM3.0 shaders.

SM3.0 requires 10 4 component float varyings for passing stuff between
vertex and pixel shaders. GF7 and earlier report 8 generic varyings +
gl_Color and gl_SecondaryColor in GLSL. This patch allows us to use
gl_Color and gl_SecondaryColor to get 2 extra varyings, which some
games, like C&C3 with highest gfx settings, require.
dlls/wined3d/glsl_shader.c
dlls/wined3d/pixelshader.c
dlls/wined3d/wined3d_private.h