mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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
0927f35e7a
commit
0e112c3371
@ -175,6 +175,7 @@ _cogl_check_driver_valid (GError **error)
|
||||
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
||||
{ G_STRINGIFY (name), G_STRUCT_OFFSET (CoglContext, drv.pf_ ## name) },
|
||||
#define COGL_FEATURE_END() \
|
||||
{ NULL, 0 }, \
|
||||
};
|
||||
#include "cogl-feature-functions.h"
|
||||
|
||||
|
@ -72,6 +72,7 @@ _cogl_check_driver_valid (GError **error)
|
||||
#define COGL_FEATURE_FUNCTION(ret, name, args) \
|
||||
{ G_STRINGIFY (name), G_STRUCT_OFFSET (CoglContext, drv.pf_ ## name) },
|
||||
#define COGL_FEATURE_END() \
|
||||
{ NULL, 0 }, \
|
||||
};
|
||||
#include "cogl-feature-functions.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user