wined3d: Support the full amount of constants in GLSL.
commit7ab6c22f5ab280da71413171ab574735f1c6a5c1
authorStefan Dösinger <stefan@codeweavers.com>
Wed, 22 Apr 2009 19:39:14 +0000 (22 21:39 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 27 Apr 2009 11:24:00 +0000 (27 13:24 +0200)
tree4cce6f1ceb054e2380305b0cb544793c8d3fcb07
parent9f1731edb6b20be5bbad527148c9a8f588e28b33
wined3d: Support the full amount of constants in GLSL.

This patch advertises all GL reported float uniforms to the D3D app to
reach the 256 constants required by Shader Model 3.0 on dx9 cards. If
the shader does not use indirect addressing, all 256 constants are
declared. The compiler can then figure out which constants are
actually used. This makes shaders work that use high constant indices,
but don't use all 256 constants.
dlls/wined3d/baseshader.c
dlls/wined3d/glsl_shader.c
dlls/wined3d/wined3d_private.h