diff --git a/cogl/cogl-internal.h b/cogl/cogl-internal.h index c650960b6..c4169beda 100644 --- a/cogl/cogl-internal.h +++ b/cogl/cogl-internal.h @@ -134,7 +134,8 @@ void _cogl_flush_face_winding (void); /* 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 _cogl_disable_other_texcoord_arrays (const CoglBitmask *mask); diff --git a/cogl/cogl.c b/cogl/cogl.c index eab2d12d9..41dfa53b7 100644 --- a/cogl/cogl.c +++ b/cogl/cogl.c @@ -790,6 +790,7 @@ _cogl_disable_other_texcoord_arrays (const CoglBitmask *mask) /* Update the mask of arrays that are enabled */ _cogl_bitmask_clear_bits (&ctx->texcoord_arrays_enabled, &ctx->texcoord_arrays_to_disable); + _cogl_bitmask_set_bits (&ctx->texcoord_arrays_enabled, mask); } void