culling: Use vertex_count not '4' to determine partial culls
authorRobert Bragg <robert@linux.intel.com>
Thu, 2 Jun 2011 11:10:59 +0000 (12:10 +0100)
committerRobert Bragg <robert@linux.intel.com>
Thu, 2 Jun 2011 20:02:11 +0000 (21:02 +0100)
commit588d97c2c7f8108e84fd2a32fdae071a4629d283
tree47bc3ba3cc320626fbc1f41919bc5db9f4934f87
parentba8cc8e064c43d79676d20eb09b24e1085587a95
culling: Use vertex_count not '4' to determine partial culls

We were mistakenly using the constant 4 to determine the number of
vertices that need to be culled for a paint-volume to be considered
fully culled too. This is only ok for 2d volumes and was resulting in
some 3d volumes being considered culled whenever 4 out of 8 vertices
were culled. This fix is simply to reference the vertex_count variable
instead of assuming 4.
clutter/clutter-paint-volume.c