Commit 3ed4c8d6 authored by Fabian Bieler's avatar Fabian Bieler Committed by Marek Olšák

util: fixed regression in fdo25614-genmipmap

This was caused by bead3e50
parent 9d45893e
......@@ -369,7 +369,7 @@ int piglit_probe_texel_rect_rgba(int target, int level, int x, int y,
for (j = y; j < y+h; ++j) {
for (i = x; i < x+w; ++i) {
probe = &buffer[(j*w+i)*4];
probe = &buffer[(j * width + i) * 4];
for (p = 0; p < 4; ++p) {
if (fabs(probe[p] - expected[p]) >= piglit_tolerance[p]) {
......@@ -433,7 +433,7 @@ int piglit_probe_texel_rect_rgb(int target, int level, int x, int y,
for (j = y; j < y+h; ++j) {
for (i = x; i < x+w; ++i) {
probe = &buffer[(j*w+i)*3];
probe = &buffer[(j * width + i) * 3];
for (p = 0; p < 3; ++p) {
if (fabs(probe[p] - expected[p]) >= piglit_tolerance[p]) {
......
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