Bug 1271 - mingw compiling failed: undefined reference to
authorNeil Roberts <neil@openedhand.com>
Fri, 21 Nov 2008 16:18:58 +0000 (16:18 +0000)
committerNeil Roberts <neil@openedhand.com>
Fri, 21 Nov 2008 16:18:58 +0000 (16:18 +0000)
commit21617cc0f194ca60cf050db1e3d3b30455ffec8f
tree2339b8d22cae02aa865c9bafa9f888c76ec9ca7b
parentfccc08795959afbcd23c6dd8c12a2146f92f11ef
Bug 1271 - mingw compiling failed: undefined reference to
`_glDrawRangeElements@24'

Resolve glDrawRangeElements with cogl_get_proc_address instead of
calling it directly because functions defined in GL > 1.1 are not
directly exported under Windows.

* clutter/cogl/common/cogl-mesh.c: Use the function pointer from
the context

* clutter/cogl/gl/cogl-context.c (cogl_create_context): Initialise
function pointer.

* clutter/cogl/gl/cogl-context.h (CoglContext): Add a function
pointer

* clutter/cogl/gl/cogl-defines.h.in: Add a typedef for the
function pointer.

* clutter/cogl/gl/cogl.c (_cogl_features_init): Resolve
glDrawRangeElements
ChangeLog
clutter/cogl/common/cogl-mesh.c
clutter/cogl/gl/cogl-context.c
clutter/cogl/gl/cogl-context.h
clutter/cogl/gl/cogl-defines.h.in
clutter/cogl/gl/cogl.c