From: Vinson Lee Date: Sun, 14 Feb 2010 10:04:17 +0000 (-0800) Subject: glut: Silence uninitialized variable warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a3e3621752be5b054739ce606cad4f77cb65049;p=mesa.git glut: Silence uninitialized variable warning. --- diff --git a/src/glut/glx/glut_overlay.c b/src/glut/glx/glut_overlay.c index db1abe005d8..32434650ebe 100644 --- a/src/glut/glx/glut_overlay.c +++ b/src/glut/glx/glut_overlay.c @@ -388,6 +388,7 @@ glutEstablishOverlay(void) if (!overlay->vis) { __glutFatalError("lacks overlay support."); } + overlay->ctx = NULL; #if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_fbconfig) if (fbc) { window->ctx = __glut_glXCreateContextWithConfigSGIX(__glutDisplay, fbc,