mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 14:53:03 +00:00
cogl: Use APIENTRY for GL function pointer declarations
This matters for platforms such as Windows that use a different calling covention from the default for GL functions.
This commit is contained in:
parent
0f37570e93
commit
b4fc8faaab
@ -26,10 +26,14 @@
|
|||||||
|
|
||||||
#include "cogl.h"
|
#include "cogl.h"
|
||||||
|
|
||||||
|
#ifndef APIENTRY
|
||||||
|
#define APIENTRY
|
||||||
|
#endif
|
||||||
|
|
||||||
#define COGL_FEATURE_BEGIN(a, b, c, d, e, f)
|
#define COGL_FEATURE_BEGIN(a, b, c, d, e, f)
|
||||||
|
|
||||||
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
||||||
ret (* pf_ ## name) args;
|
ret (APIENTRY * pf_ ## name) args;
|
||||||
|
|
||||||
#define COGL_FEATURE_END()
|
#define COGL_FEATURE_END()
|
||||||
|
|
||||||
|
@ -27,10 +27,14 @@
|
|||||||
#include "cogl.h"
|
#include "cogl.h"
|
||||||
#include "cogl-gles2-wrapper.h"
|
#include "cogl-gles2-wrapper.h"
|
||||||
|
|
||||||
|
#ifndef APIENTRY
|
||||||
|
#define APIENTRY
|
||||||
|
#endif
|
||||||
|
|
||||||
#define COGL_FEATURE_BEGIN(a, b, c, d, e, f)
|
#define COGL_FEATURE_BEGIN(a, b, c, d, e, f)
|
||||||
|
|
||||||
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
||||||
ret (* pf_ ## name) args;
|
ret (APIENTRY * pf_ ## name) args;
|
||||||
|
|
||||||
#define COGL_FEATURE_END()
|
#define COGL_FEATURE_END()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user