glut: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Sun, 14 Feb 2010 10:04:17 +0000 (02:04 -0800)
committerVinson Lee <vlee@vmware.com>
Sun, 14 Feb 2010 10:04:17 +0000 (02:04 -0800)
src/glut/glx/glut_overlay.c

index db1abe005d83062e3817c2999e33fbcd19634a47..32434650ebedca96fbcff8d42c935e9c95f5aa53 100644 (file)
@@ -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,