cogl-material-arbfp: Use separate buffers when calling g_ascii_dtostr
authorNeil Roberts <neil@linux.intel.com>
Sat, 17 Jul 2010 11:40:19 +0000 (12:40 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Sun, 18 Jul 2010 10:01:05 +0000 (11:01 +0100)
commit76d8119a7fcdbd64566d8ef16f73e50b0ae28c7f
tree53925f7ee7a510b150941c38617fc9781c8f3840
parent90b74458d2ac8fcedea8f9dc3e28a3e9d9455bc7
cogl-material-arbfp: Use separate buffers when calling g_ascii_dtostr

g_ascii_dtostr was being used in four separate arguments to
g_string_append_printf but all invocations of it were using the same
buffer. This would end up with all of the arguments having the same
value which would depend on whichever order the compiler evaluates
them in. This patches changes it to use a multi-dimensional array and
a loop to fill in the separate buffers.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2219
clutter/cogl/cogl/cogl-material-arbfp.c