Neil Roberts b4887c3699 blur-effect: Use the texture size to work out the x/y step
The blur effect needs to pass a uniform to the GLSL shader so that it
can know the texture coordinate offset from one texel to another. To
calculate this the blur effect was previously using the allocation
size of the actor rounded up to the next power of two. Presumably the
assumption was that Cogl would round up the size of the texture to the
next power of two when allocating the texture. However this is not be
true if the driver supports NPOT textures. Also it doesn't take into
account the paint volume of the actor which may cause the texture to
be a completely different size. This patch just changes to directly
use the size of the texture.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
2012-02-14 12:09:31 +00:00
..
2012-01-16 23:37:12 +00:00
2011-11-10 19:05:39 +01:00
2011-11-18 22:06:30 +01:00
2012-02-13 17:30:22 +00:00
2012-01-26 08:31:11 +00:00
2012-01-26 08:30:58 +00:00
2012-01-26 08:31:10 +00:00
2012-02-09 18:42:27 +00:00
2011-10-19 15:23:55 +01:00
2011-10-19 15:23:55 +01:00
2011-11-10 14:13:45 +00:00
2011-06-07 16:06:24 +01:00
2010-10-21 12:22:17 +01:00
2012-01-16 23:35:16 +00:00
2011-06-07 16:06:24 +01:00
2011-12-28 09:37:53 +00:00
2011-06-07 16:06:24 +01:00
2012-01-16 21:06:19 +00:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2012-02-13 17:30:22 +00:00
2012-02-13 17:30:22 +00:00
2012-01-16 23:49:49 +00:00
2012-02-11 16:02:31 +00:00
2012-02-13 17:30:22 +00:00
2011-06-07 16:06:24 +01:00
2012-01-16 23:35:17 +00:00