Module: wine Branch: master Commit: b8c613196d74f89ad0c1168cdd49d4f88dee29ee URL: http://source.winehq.org/git/wine.git/?a=commit;h=b8c613196d74f89ad0c1168cdd...
Author: Stefan Dösinger stefan@codeweavers.com Date: Mon Feb 11 01:53:53 2008 +0100
wined3d: Fix a syntax error in the ARB vertex program offset shader.
As some Mesa developers pointed out, the GL_ARB_vertex_program grammar does not allow an immediate value as source argument in ARL. Most compilers accept it, but since it is not the purpose of the test program to test for this replace it with a proper constant.
---
dlls/wined3d/directx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 3c9ea69..011620d 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -426,7 +426,8 @@ static inline BOOL test_arb_vs_offset_limit(WineD3D_GL_Info *gl_info) { "!!ARBvp1.0\n" "PARAM C[66] = { program.env[0..65] };\n" "ADDRESS A0;" - "ARL A0.x, 0.0;\n" + "PARAM zero = {0.0, 0.0, 0.0, 0.0};\n" + "ARL A0.x, zero.x;\n" "MOV result.position, C[A0.x + 65];\n" "END\n";