Package: tachyon / 0.99~b6+dsx-9

upstream-opengl.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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);