diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-05-17 15:00:38 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-06-01 20:44:41 +0100 |
commit | b380fed23d61688d1ea199ac28ff4bfba0a32985 (patch) | |
tree | e3708b618fc74d38b2a389a2769eb81f5423476d /cogl/cogl.c | |
parent | 1ec852551013c556d7edcdea92cfc33627900662 (diff) | |
download | cogl-b380fed23d61688d1ea199ac28ff4bfba0a32985.tar.gz |
Make stub winsys into a proper winsys backend
Instead of the stub winsys being a special case set of #ifdef'd code
used when COGL_HAS_FULL_WINSYS wasn't defined, the stub winsys now
implements a CoglWinsysVtable like all other winsys backends (it's just
that everything is a NOP). This way we can get rid of the
COGL_HAS_FULL_WINSYS define and also the stub winsys can be runtime
selected whereas before it was incompatible with all other winsys
backends.
Diffstat (limited to 'cogl/cogl.c')
-rw-r--r-- | cogl/cogl.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cogl/cogl.c b/cogl/cogl.c index 65922217..896b2e66 100644 --- a/cogl/cogl.c +++ b/cogl/cogl.c @@ -95,7 +95,6 @@ cogl_get_proc_address (const char* name) { void *address; static GModule *module = NULL; -#ifdef COGL_HAS_FULL_WINSYS const CoglWinsysVtable *winsys; _COGL_GET_CONTEXT (ctx, NULL); @@ -103,9 +102,6 @@ cogl_get_proc_address (const char* name) winsys = _cogl_context_get_winsys (ctx); address = winsys->get_proc_address (name); -#else - address = _cogl_winsys_get_proc_address (name); -#endif if (address) return address; |