diff --git a/cogl/cogl-pipeline-opengl.c b/cogl/cogl-pipeline-opengl.c index 8d57bff78..049d0f795 100644 --- a/cogl/cogl-pipeline-opengl.c +++ b/cogl/cogl-pipeline-opengl.c @@ -725,6 +725,7 @@ flush_layers_common_gl_state_cb (CoglPipelineLayer *layer, void *user_data) if (!G_UNLIKELY (cogl_debug_flags & COGL_DEBUG_DISABLE_TEXTURING) && !unit->enabled) { + _cogl_set_active_texture_unit (unit_index); GE (glEnable (unit->current_gl_target)); unit->enabled = TRUE; }