Commit 71da1bac authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler/tests: Fix access to the test output for y > 0.

parent f4eccde6
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment