diff options
author | Martin Lambers <marlam@marlam.de> | 2012-03-07 20:50:40 (GMT) |
---|---|---|
committer | Martin Lambers <marlam@marlam.de> | 2012-03-07 20:50:40 (GMT) |
commit | ab35909e4d190d4c5497b687e8f7936b686ce81a (patch) | |
tree | d55f7ca4182c70e16e1048a7a64c82564db923fc /src/glew-test.c | |
parent | cc7ac84e6c3c8129b2de082083762cb8f393f46c (diff) | |
download | mxe-ab35909e4d190d4c5497b687e8f7936b686ce81a.zip mxe-ab35909e4d190d4c5497b687e8f7936b686ce81a.tar.gz mxe-ab35909e4d190d4c5497b687e8f7936b686ce81a.tar.bz2 |
Make the glew package build and install GLEWmx.
GLEWmx is the multi-context version of GLEW.
---
src/glew-test.c | 9 +++++++++
src/glew.mk | 24 ++++++++++++++++++++++++
2 files changed, 33 insertions(+)
Diffstat (limited to 'src/glew-test.c')
-rw-r--r-- | src/glew-test.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glew-test.c b/src/glew-test.c index 05db910..e37a520 100644 --- a/src/glew-test.c +++ b/src/glew-test.c @@ -4,6 +4,15 @@ #include <stdio.h> #include <GL/glew.h> +#ifdef GLEW_MX +/* We are using the multi-context variant of libGLEW */ +GLEWContext glew_context; +GLEWContext* glewGetContext() +{ + return &glew_context; +} +#endif + int main(int argc, char *argv[]) { GLenum err; |