summaryrefslogtreecommitdiffstats
path: root/src/glut/glx
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-14 02:04:17 -0800
committerVinson Lee <[email protected]>2010-02-14 02:04:17 -0800
commit0a3e3621752be5b054739ce606cad4f77cb65049 (patch)
treeec1ee2b893741c20029b1b82f812947257866a7b /src/glut/glx
parent3a299071d41d2e45adba4aebab53ab1391176585 (diff)
glut: Silence uninitialized variable warning.
Diffstat (limited to 'src/glut/glx')
-rw-r--r--src/glut/glx/glut_overlay.c1
1 files changed, 1 insertions, 0 deletions
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,