cogl: Add the missing terminators for the arrays of feature functions
_cogl_feature_check expects the array of function names to be terminated with a NULL pointer but I forgot to add this. This was causing crashes depending on what happened to be in memory after the array.
This commit is contained in:
parent
70aeb1c642
commit
142305b1d5
@ -175,6 +175,7 @@ _cogl_check_driver_valid (GError **error)
|
|||||||
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
||||||
{ G_STRINGIFY (name), G_STRUCT_OFFSET (CoglContext, drv.pf_ ## name) },
|
{ G_STRINGIFY (name), G_STRUCT_OFFSET (CoglContext, drv.pf_ ## name) },
|
||||||
#define COGL_FEATURE_END() \
|
#define COGL_FEATURE_END() \
|
||||||
|
{ NULL, 0 }, \
|
||||||
};
|
};
|
||||||
#include "cogl-feature-functions.h"
|
#include "cogl-feature-functions.h"
|
||||||
|
|
||||||
|
@ -72,6 +72,7 @@ _cogl_check_driver_valid (GError **error)
|
|||||||
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
||||||
{ G_STRINGIFY (name), G_STRUCT_OFFSET (CoglContext, drv.pf_ ## name) },
|
{ G_STRINGIFY (name), G_STRUCT_OFFSET (CoglContext, drv.pf_ ## name) },
|
||||||
#define COGL_FEATURE_END() \
|
#define COGL_FEATURE_END() \
|
||||||
|
{ NULL, 0 }, \
|
||||||
};
|
};
|
||||||
#include "cogl-feature-functions.h"
|
#include "cogl-feature-functions.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user