If --gears is passed on the command line, glxgears is run, and is used for the source window rather than drawing solid rectangles into a window we create outselves.
ddca059 examples/cogl-x11-tfp: Add a --gears option to run glxgears
examples/cogl-x11-tfp.c | 177 ++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 151 insertions(+), 26 deletions(-)
Upstream: developer.gnome.org