mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
cogl: Record new enabled arrays in _cogl_disable_other_texcoord_arrays
When _cogl_disable_other_texcoord_arrays is called it disables the neccessary texcoord arrays and then removes the bits for the disabled arrays in ctx->texcoord_arrays_enabled. However none of the places that call the function then set any bits in ctx->texcoord_arrays_enabled so the arrays would never get marked and they would never get disabled again. This patch just changes it so that _cogl_disable_other_texcoord_arrays also sets the corresponding bits in ctx->texcoord_arrays_enabled.
This commit is contained in:
parent
aab411bde4
commit
401892af11
@ -134,7 +134,8 @@ void
|
|||||||
_cogl_flush_face_winding (void);
|
_cogl_flush_face_winding (void);
|
||||||
|
|
||||||
/* Disables the texcoord arrays that don't have a corresponding bit
|
/* Disables the texcoord arrays that don't have a corresponding bit
|
||||||
set in the mask */
|
set in the mask and sets ctx->texcoord_arrays_enabled to mask. Note
|
||||||
|
that it doesn't enable any extra texcoord arrays */
|
||||||
void
|
void
|
||||||
_cogl_disable_other_texcoord_arrays (const CoglBitmask *mask);
|
_cogl_disable_other_texcoord_arrays (const CoglBitmask *mask);
|
||||||
|
|
||||||
|
@ -790,6 +790,7 @@ _cogl_disable_other_texcoord_arrays (const CoglBitmask *mask)
|
|||||||
/* Update the mask of arrays that are enabled */
|
/* Update the mask of arrays that are enabled */
|
||||||
_cogl_bitmask_clear_bits (&ctx->texcoord_arrays_enabled,
|
_cogl_bitmask_clear_bits (&ctx->texcoord_arrays_enabled,
|
||||||
&ctx->texcoord_arrays_to_disable);
|
&ctx->texcoord_arrays_to_disable);
|
||||||
|
_cogl_bitmask_set_bits (&ctx->texcoord_arrays_enabled, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user