From: erg Date: Wed, 9 Apr 2008 15:32:41 +0000 (+0000) Subject: Put #ifdef WIN around call to glClearBackground(). This causes a crash X-Git-Tag: LAST_LIBGRAPH~32^2~4351 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a64ac3bfa084b7e82c9323e2ec413f237b7e3713;p=graphviz Put #ifdef WIN around call to glClearBackground(). This causes a crash on Unix. In general, this needs to be fixed, since technically the call is being made before openGL is initialized. --- diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 2641f3d19..a09a4e93a 100755 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -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 }