material: only deference layer->texture for authority
authorRobert Bragg <robert@linux.intel.com>
Fri, 6 Aug 2010 13:12:22 +0000 (14:12 +0100)
committerRobert Bragg <robert@linux.intel.com>
Fri, 6 Aug 2010 13:16:35 +0000 (14:16 +0100)
commit8ac3cb29ea6a04f434887c4e7a441ae4a4e67729
treee589e9b055414ca38c6801eab5b8b9ec2ef5b2df
parent069266f3ed911dd8de69066c5d50a4befca468a8
material: only deference layer->texture for authority

In _cogl_material_layer_pre_paint we were mistakenly dereferencing the
layer->texture member for the passed layer instead of dereferencing the
texture state authority which was causing crashes in some cases.
clutter/cogl/cogl/cogl-material.c