mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
cogl-material: Layers are not equal if the filters aren't equal
A material layer can not be considered equal if it is using different texture filtering modes. This was causing problems where rectangles with different filters would end up batched together and then rendered with the wrong filter mode.
This commit is contained in:
parent
b61c2b510b
commit
ce1bb3d858
@ -1750,6 +1750,11 @@ _cogl_material_layer_equal (CoglMaterialLayer *material0_layer,
|
||||
return FALSE;
|
||||
#endif
|
||||
|
||||
if (material0_layer->mag_filter != material1_layer->mag_filter)
|
||||
return FALSE;
|
||||
if (material0_layer->min_filter != material1_layer->min_filter)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user