From be9564b3db8bf28fdd4f3f2d681add340917841e Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Sat, 10 Jul 2010 01:36:22 +0100 Subject: [PATCH] material: copy_differences: handle copying fog state When the support for redirecting the legacy fog state through cogl material was added in 9b9e764dc, the code to handle copying the fog state in _cogl_material_copy_differences was missed. --- cogl/cogl-material.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cogl/cogl-material.c b/cogl/cogl-material.c index 6fc658cc0..5cd53f3a5 100644 --- a/cogl/cogl-material.c +++ b/cogl/cogl-material.c @@ -1089,6 +1089,13 @@ _cogl_material_copy_differences (CoglMaterial *dest, sizeof (CoglMaterialDepthState)); } + if (differences & COGL_MATERIAL_STATE_FOG) + { + memcpy (&big_state->fog_state, + &src->big_state->fog_state, + sizeof (CoglMaterialFogState)); + } + if (differences & COGL_MATERIAL_STATE_POINT_SIZE) big_state->point_size = src->big_state->point_size;