material: only deference layer->texture for authority
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.

jigpu/clutter,Distrotech/clutter,collects/clutter,dlespiau/clutter,kerrickstaley/clutter-vala,djdeath/clutter,djdeath/clutter-multithreaded,heysion/clutter-clone,heysion/clutter-clone,spatulasnout/clutter,ebassi/clutter,djdeath/clutter-multithreaded,ebassi/clutter,collects/clutter,ebassi/clutter,djdeath/clutter-multithreaded,dlespiau/clutter,djdeath/clutter-android,Distrotech/clutter,GNOME/clutter,nobled/clutter,djdeath/clutter-android,jigpu/clutter,djdeath/clutter-android,djdeath/clutter,Distrotech/clutter,spatulasnout/clutter,heysion/clutter-clone,djdeath/clutter-android,ebassi/clutter,collects/clutter,heysion/clutter-clone,collects/clutter,Distrotech/clutter,djdeath/clutter-multithreaded,djdeath/clutter,GNOME/clutter,spatulasnout/clutter,jigpu/clutter,kerrickstaley/clutter-vala,jigpu/clutter,jigpu/clutter,kerrickstaley/clutter-vala,heysion/clutter-clone,Distrotech/clutter,GNOME/clutter,djdeath/clutter,djdeath/clutter,spatulasnout/clutter,dlespiau/clutter,nobled/clutter,spatulasnout/clutter,GNOME/clutter,nobled/clutter,Distrotech/clutter,jigpu/clutter,collects/clutter,kerrickstaley/clutter-vala,djdeath/clutter-android,GNOME/clutter,ebassi/clutter,djdeath/clutter