diff options
author | Robert Bragg <robert@linux.intel.com> | 2010-11-05 12:28:33 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-04-11 17:54:36 +0100 |
commit | d40cdfa3e1c0fd43660002418ce5594b81d80bc1 (patch) | |
tree | 7d6de9cac0afdbb67e7f53ef3a87fc12b9424983 /cogl/cogl-feature-private.c | |
parent | bcd97f35ead2efc48b905e43ed981cd4d5850229 (diff) | |
download | cogl-d40cdfa3e1c0fd43660002418ce5594b81d80bc1.tar.gz |
Moves all GLX code down from Clutter to Cogl
This migrates all the GLX window system code down from the Clutter
backend code into a Cogl winsys. Moving OpenGL window system binding
code down from Clutter into Cogl is the biggest blocker to having Cogl
become a standalone 3D graphics library, so this is an important step in
that direction.
Diffstat (limited to 'cogl/cogl-feature-private.c')
-rw-r--r-- | cogl/cogl-feature-private.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cogl/cogl-feature-private.c b/cogl/cogl-feature-private.c index deff9fc3..d3904b48 100644 --- a/cogl/cogl-feature-private.c +++ b/cogl/cogl-feature-private.c @@ -37,7 +37,8 @@ _cogl_feature_check (const char *driver_prefix, const CoglFeatureData *data, unsigned int gl_major, unsigned int gl_minor, - const char *extensions_string) + const char *extensions_string, + void *function_table) { const char *suffix = NULL; @@ -123,7 +124,7 @@ _cogl_feature_check (const char *driver_prefix, break; /* Set the function pointer in the context */ - *(void **) ((guint8 *) ctx + + *(void **) ((guint8 *) function_table + data->functions[func_num].pointer_offset) = func; } |