summaryrefslogtreecommitdiff
path: root/progs/tests/sharedtex.c
diff options
context:
space:
mode:
authorJouk Jansen <joukj@hrem.stm.tudelft.nl>2002-01-16 14:32:46 +0000
committerJouk Jansen <joukj@hrem.stm.tudelft.nl>2002-01-16 14:32:46 +0000
commit43df32e4387d978bf07f3aa3edd9f6d2b9c67306 (patch)
tree28e92fffebcae5839aa7cddc235475cebce7f7af /progs/tests/sharedtex.c
parent40fac75370507924b013908ecaa5fb37e8501dba (diff)
Committing in .
-Compile support for tests on OpenVMS -Fixed missing header file -Fixed missing return value on function return Modified Files: Mesa/descrip.mms Mesa/tests/sharedtex.c Added Files: Mesa/tests/descrip.mms ----------------------------------------------------------------------
Diffstat (limited to 'progs/tests/sharedtex.c')
-rw-r--r--progs/tests/sharedtex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/tests/sharedtex.c b/progs/tests/sharedtex.c
index e58ac57b9e..ebe73f19f4 100644
--- a/progs/tests/sharedtex.c
+++ b/progs/tests/sharedtex.c
@@ -1,4 +1,4 @@
-/* $Id: sharedtex.c,v 1.1 2000/09/01 21:01:18 brianp Exp $ */
+/* $Id: sharedtex.c,v 1.2 2002/01/16 14:32:46 joukj Exp $ */
/*
* Test sharing of display lists and texture objects between GLX contests.
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <string.h>
struct window {
@@ -142,7 +143,7 @@ AddWindow(const char *displayName, int xpos, int ypos,
if (!glXMakeCurrent(dpy, win, ctx)) {
Error(displayName, "glXMakeCurrent failed");
printf("glXMakeCurrent failed in Redraw()\n");
- return;
+ return NULL;
}
/* save the info for this window */