]> granicus.if.org Git - graphviz/commitdiff
Put #ifdef WIN around call to glClearBackground(). This causes a crash
authorerg <devnull@localhost>
Wed, 9 Apr 2008 15:32:41 +0000 (15:32 +0000)
committererg <devnull@localhost>
Wed, 9 Apr 2008 15:32:41 +0000 (15:32 +0000)
on Unix. In general, this needs to be fixed, since technically the
call is being made before openGL is initialized.

cmd/smyrna/viewport.c

index 2641f3d19a77d24708c6514623284f70942c566d..a09a4e93a093edf73749ea74d048cfdf082821a1 100755 (executable)
@@ -225,8 +225,8 @@ there i go, turn the page
 
 //FIXME: I don't think an openGL function can be called before it
   //     is initialized.
+#ifdef _WIN32
     glClearColor(view->bgColor.R, view->bgColor.G, view->bgColor.B, view->bgColor.A);  //background color
-#if 0
 #endif
 }