From 270e1e81883f6da4bf4b75aa4619ffc932ee68c0 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 18 Jun 2010 15:25:51 +0100 Subject: [PATCH] cogl-context: Use the function pointer for glActiveUnit Under WGL, any functions that were defined after GL 1.1 are not directly exported in the DLL so we need to reference them via the function pointers. A new call to glActiveUnit was missed in cogl-context.c --- cogl/cogl-context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c index 585e124f0..83453f905 100644 --- a/cogl/cogl-context.c +++ b/cogl/cogl-context.c @@ -37,6 +37,10 @@ #include +#ifdef HAVE_COGL_GL +#define glActiveTexture _context->drv.pf_glActiveTexture +#endif + extern void _cogl_create_context_driver (CoglContext *context);