H. Verbeet : wined3d: Use gl_Color and gl_SecondaryColor to support more varyings in SM3. 0 shaders.
Module: wine Branch: master Commit: a6fa6a4a318ac8ebb069fffa107ccb7d99a00407 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a6fa6a4a318ac8ebb069fffa10... Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Jun 19 00:36:35 2008 +0200 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 | 147 ++++++++++++++++++++++++++++----------- dlls/wined3d/pixelshader.c | 2 + dlls/wined3d/wined3d_private.h | 2 + 3 files changed, 109 insertions(+), 42 deletions(-) Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=a6fa6a4a318ac8ebb069ff...
participants (1)
-
Alexandre Julliard