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:
Neil Roberts 2009-11-18 13:23:10 +00:00
parent 0927f35e7a
commit 0e112c3371
2 changed files with 2 additions and 0 deletions

View File

@ -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"

View File

@ -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"