commit | 7ab6c22f5ab280da71413171ab574735f1c6a5c1 | [log] [tgz] |
---|---|---|
author | Stefan Dösinger <stefan@codeweavers.com> | Wed Apr 22 21:39:14 2009 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Mon Apr 27 13:24:00 2009 +0200 |
tree | 4cce6f1ceb054e2380305b0cb544793c8d3fcb07 | |
parent | 9f1731edb6b20be5bbad527148c9a8f588e28b33 [diff] |
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.