diff src/glew-test.c @ 2271:3e532768cd27

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(+)
author Martin Lambers <marlam@marlam.de>
date Wed, 07 Mar 2012 21:50:40 +0100
parents a8709467c874
children f653602a0500
line wrap: on
line diff
--- a/src/glew-test.c	Wed Mar 07 21:50:40 2012 +0100
+++ b/src/glew-test.c	Wed Mar 07 21:50:40 2012 +0100
@@ -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;