cliptest: sync calculate_edges with master copy
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 20 Aug 2014 07:35:26 +0000 (10:35 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 20 Aug 2014 08:51:27 +0000 (11:51 +0300)
commiteffef73926f3e6a503c485a425ac5b450f29c186
treefa14a03b97d57812603e7157bf591d78e8ec7e2c
parenta64a475ede0a0114cff313acaa9e63a8fb180cfd
cliptest: sync calculate_edges with master copy

The master copy of calculate_edges() lives nowadays in gl-renderer.c.
Copy it verbatim from gl-renderer.c into cliptest.c.

Update cliptest.c for the following changes that happened in Weston
core, vertex.clipping.c, and gl-renderer.c:
- replace GLfloat with float
- introduction of weston_view, here replacing weston_surface
- API change of weston_view_to_global_float

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
clients/cliptest.c