Commit c112ea62 authored by Ian Romanick's avatar Ian Romanick

Fix stupid mistakes in previous commit

It's just been one of those days...
parent bd47072e
......@@ -73,13 +73,15 @@ union data_blob {
void
validate_buffer(const union data_blob *buffer, unsigned size, float expected)
{
unsigned i;
if (buffer[0].f != expected) {
printf("index 0: got %f, expected %f\n",
buffer[0].f, uniform_data[0]);
buffer[0].f, expected);
piglit_report_result(PIGLIT_FAILURE);
} else if (!piglit_automatic) {
printf("index 0: got %f, expected %f (good)\n",
buffer[0].f, uniform_data[0]);
buffer[0].f, expected);
}
for (i = 1; i < size; i++) {
......
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