Matteo Bruni : d3dcompiler/tests: Fix access to the test output for y > 0.
Alexandre Julliard
julliard at winehq.org
Wed Oct 10 15:07:53 CDT 2012
Module: wine
Branch: master
Commit: 71da1bac5d78d9d07ea6da1ea6379caa1d89a856
URL: http://source.winehq.org/git/wine.git/?a=commit;h=71da1bac5d78d9d07ea6da1ea6379caa1d89a856
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Wed Oct 10 18:25:59 2012 +0200
d3dcompiler/tests: Fix access to the test output for y > 0.
---
dlls/d3dcompiler_43/tests/hlsl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dcompiler_43/tests/hlsl.c b/dlls/d3dcompiler_43/tests/hlsl.c
index a528e80..1bc3641 100644
--- a/dlls/d3dcompiler_43/tests/hlsl.c
+++ b/dlls/d3dcompiler_43/tests/hlsl.c
@@ -269,7 +269,7 @@ static void compute_shader_probe9(IDirect3DDevice9 *device, IDirect3DVertexShade
/* Now go through the probes and check each one */
for (i = 0; i < count; i++, probes++) {
- int index = probes->x + (probes->y * lr.Pitch);
+ int index = probes->x + (probes->y * lr.Pitch / sizeof(D3DXCOLOR));
ok(colors_match(probes->c, pbits_data[index], probes->epsilon),
"Line %d: At (%d, %d): %s: Expected (%.04f,%.04f,%.04f, %.04f), got "
"(%.04f,%.04f,%.04f,%.04f)\n", line_number, probes->x, probes->y, probes->message,
More information about the wine-cvs
mailing list