Browse Source

Fix build with OpenGL but without CUDA

Samuel Thibault 11 years ago
parent
commit
b5d6297509
1 changed files with 3 additions and 0 deletions
  1. 3 0
      examples/gl_interop/gl_interop.c

+ 3 - 0
examples/gl_interop/gl_interop.c

@@ -26,6 +26,8 @@
 
 
 #include <starpu.h>
 #include <starpu.h>
 #include <unistd.h>
 #include <unistd.h>
+
+#if !(defined(STARPU_USE_CUDA) && defined(STARPU_OPENGL_RENDER))
 #include <GL/glut.h>
 #include <GL/glut.h>
 
 
 void dummy(void *buffers[], void *cl_arg)
 void dummy(void *buffers[], void *cl_arg)
@@ -72,6 +74,7 @@ void callback_func(void *foo) {
 	/* Tell it was already the last submitted task */
 	/* Tell it was already the last submitted task */
 	starpu_drivers_request_termination();
 	starpu_drivers_request_termination();
 }
 }
+#endif
 
 
 int main(int argc, char **argv)
 int main(int argc, char **argv)
 {
 {