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.
This commit is contained in:
parent
ceb57087a7
commit
9e893e684e
@ -1089,6 +1089,13 @@ _cogl_material_copy_differences (CoglMaterial *dest,
|
|||||||
sizeof (CoglMaterialDepthState));
|
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)
|
if (differences & COGL_MATERIAL_STATE_POINT_SIZE)
|
||||||
big_state->point_size = src->big_state->point_size;
|
big_state->point_size = src->big_state->point_size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user