projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb79b0c
)
test-cogl-pixel-array: fix how data is initialized
author
Robert Bragg
<robert@linux.intel.com>
Mon, 5 Jul 2010 18:49:35 +0000
(19:49 +0100)
committer
Robert Bragg
<robert@linux.intel.com>
Tue, 6 Jul 2010 11:07:28 +0000
(12:07 +0100)
There was a missing '* 4' and '* i' in the for() loops that initialized
the first test buffer, so it was containing uninitialized data causing
the test to fail.
tests/conform/test-cogl-pixel-buffer.c
patch
|
blob
|
history
diff --git
a/tests/conform/test-cogl-pixel-buffer.c
b/tests/conform/test-cogl-pixel-buffer.c
index
f68110f
..
5da9c4b
100644
(file)
--- a/
tests/conform/test-cogl-pixel-buffer.c
+++ b/
tests/conform/test-cogl-pixel-buffer.c
@@
-82,11
+82,11
@@
create_map_tile (TestTile *tile)
g_assert (map);
line = g_alloca (TILE_SIZE * 4);
- for (i = 0; i < TILE_SIZE; i += 4)
+ for (i = 0; i < TILE_SIZE
* 4
; i += 4)
memcpy (line + i, &tile->color, 4);
for (i = 0; i < TILE_SIZE; i++)
- memcpy (map + stride
, line,
4);
+ memcpy (map + stride
* i, line, TILE_SIZE *
4);
cogl_buffer_unmap (buffer);