gl/clutter: safer check for cogl version
authorLuis de Bethencourt <luis@debethencourt.com>
Sun, 4 May 2014 01:38:42 +0000 (21:38 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:39 +0000 (19:31 +0000)
commit64a144f114a388b3ff8acee4d8bdb5484be59cd1
tree1ac422513cfdbe483facac8e97857a5d78594f85
parentf29a98cc5f7b9880c98c83b02b8be37dbfc5a3da
gl/clutter: safer check for cogl version

Use COGL_VERSION_ENCODE to check for the minimum required and maximum allowed
cogl version. In certain situations just using the COGL_VERSION_* macro name can
give you the following error:

error "COGL_VERSION_MAX_ALLOWED must be >= COGL_VERSION_MIN_REQUIRED"
tests/examples/gl/clutter/cluttershare.c