Description: opengl
 Harden separate build either with or without OpenGL support.
Origin: vendor, Debian
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2014-10-26

--- a/demosrc/main.c
+++ b/demosrc/main.c
@@ -24,11 +24,13 @@
 #else
 #include <X11/Xlib.h>
 #endif
+
 #include <GL/gl.h>
-#endif
 
 #include "spaceball.h"  /* Spaceball fly-through code */
 
+#endif /* USEOPENGL */
+
 typedef struct {
   float x;
   float y;
@@ -376,7 +378,9 @@
   rt_timerhandle fpstimer;
   rt_timerhandle animationtimer;
   char outfilename[1];
+#if defined(USEOPENGL)
   sbHandle * bh = NULL;
+#endif
 
   if (node == 0)
     dh = tachyon_display_create(scene);
@@ -426,8 +430,10 @@
       fflush(stdout);
     } 
 
+#if defined(USEOPENGL)
     if (bh != NULL)
       done = tachyon_spaceball_update(bh, scene);
+#endif
 
     rt_renderscene(scene);
 
