wined3d: Fix DEF instructions in GLSL for non-Nvidia platforms.
commit99c855e6aecdcbe501920523aff73382bb3e8cc6
authorJason Green <jave27@gmail.com>
Mon, 19 Jun 2006 21:53:13 +0000 (19 17:53 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 20 Jun 2006 09:28:05 +0000 (20 11:28 +0200)
tree90a9e23bea3006df249066213422fcdaefbec20d
parentce24c2a8a706cb016c2aaef7deb629e4ba7cca93
wined3d: Fix DEF instructions in GLSL for non-Nvidia platforms.

- NVidia allows "const vec4 = {1.0, 2.0, 3.0, 4.0};", even though
  that's not part of the spec.
- It should be  "const vec4 = vecr4(1.0, 2.0, 3.0, 4.0);"
- This patch fixes this for D3DSIO_DEF and D3DSIO_DEFI.
dlls/wined3d/glsl_shader.c