mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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"
This commit is contained in:
parent
f29a98cc5f
commit
64a144f114
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@
|
||||||
|
|
||||||
#define CLUTTER_VERSION_MIN_REQUIRED CLUTTER_VERSION_1_8
|
#define CLUTTER_VERSION_MIN_REQUIRED CLUTTER_VERSION_1_8
|
||||||
#define CLUTTER_VERSION_MAX_ALLOWED CLUTTER_VERSION_1_10
|
#define CLUTTER_VERSION_MAX_ALLOWED CLUTTER_VERSION_1_10
|
||||||
#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_1_16
|
#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_ENCODE (1, 16, 0)
|
||||||
#define COGL_VERSION_MAX_ALLOWED COGL_VERSION_1_18
|
#define COGL_VERSION_MAX_ALLOWED COGL_VERSION_ENCODE (1, 18, 0)
|
||||||
#include <clutter/clutter.h>
|
#include <clutter/clutter.h>
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <clutter/x11/clutter-x11.h>
|
#include <clutter/x11/clutter-x11.h>
|
||||||
|
|
Loading…
Reference in a new issue