Module: wine Branch: master Commit: 7ab6c22f5ab280da71413171ab574735f1c6a5c1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ab6c22f5ab280da71413171ab...
Author: Stefan Dösinger stefan@codeweavers.com Date: Wed Apr 22 21:39:14 2009 +0200
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 | 17 +++++++++-- dlls/wined3d/glsl_shader.c | 64 ++++++++++++++++++++++++++++------------ dlls/wined3d/wined3d_private.h | 3 +- 3 files changed, 61 insertions(+), 23 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=7ab6c22f5ab280da714131...