From 0a3e3621752be5b054739ce606cad4f77cb65049 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 14 Feb 2010 02:04:17 -0800 Subject: glut: Silence uninitialized variable warning. --- src/glut/glx/glut_overlay.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glut/glx/glut_overlay.c') 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, -- cgit v1.2.3