cogl-material: Fix the function which sets the enable blend flag
authorNeil Roberts <neil@linux.intel.com>
Wed, 9 Jun 2010 12:53:34 +0000 (13:53 +0100)
committerRobert Bragg <robert@linux.intel.com>
Wed, 9 Jun 2010 16:26:15 +0000 (17:26 +0100)
commitdc09fca2649d11d7c080b3c859b2996e1911f9f5
tree9017779cabd1dfc9a2fc2cc19d1aa1a0a4ae58c1
parentb1f7d2fea8835c7731d9b999ce080f740a6b4b9b
cogl-material: Fix the function which sets the enable blend flag

This function had two problems. Firstly it would clear the enable
blend flag before calling pre_change_notify so that if blending was
previously enabled the journal would end up being flushed while the
flag was still cleared. Secondly it would call the pre change notify
whenever blending is needed regardless of whether it was already
needed previously.

This was causing problems in test-depth.
clutter/cogl/cogl/cogl-material.c