mirror of
https://github.com/brl/mutter.git
synced 2025-02-19 22:54:08 +00:00
test-cogl-sub-texture: Allow single-bit rendering error
Signed-off-by: Adam Jackson <ajax@redhat.com> http://bugzilla.clutter-project.org/show_bug.cgi?id=2640
This commit is contained in:
parent
7beb222d3f
commit
5aa8ed93ce
@ -2,6 +2,7 @@
|
|||||||
#include <clutter/clutter.h>
|
#include <clutter/clutter.h>
|
||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "test-conform-common.h"
|
#include "test-conform-common.h"
|
||||||
|
|
||||||
@ -226,8 +227,8 @@ validate_result (TestState *state)
|
|||||||
for (y = 0; y < 10; y++)
|
for (y = 0; y < 10; y++)
|
||||||
for (x = 0; x < 10; x++)
|
for (x = 0; x < 10; x++)
|
||||||
{
|
{
|
||||||
g_assert (*(p++) == x + 40);
|
g_assert_cmpint (abs(*(p++) - (x + 40)), <=, 1);
|
||||||
g_assert (*(p++) == y + 20);
|
g_assert_cmpint (abs(*(p++) - (y + 20)), <=, 1);
|
||||||
p += 2;
|
p += 2;
|
||||||
}
|
}
|
||||||
g_free (texture_data);
|
g_free (texture_data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user