fix issue in X11OpenGLWindow (uninitialized variable causing issue at exit)

This commit is contained in:
Erwin Coumans
2016-04-25 19:19:19 -07:00
parent 64cfbacf0a
commit edba85bab3

View File

@@ -461,6 +461,7 @@ void X11OpenGLWindow::enableOpenGL()
printf( "Making context current\n" );
glXMakeCurrent( m_data->m_dpy, m_data->m_win, ctx );
m_data->m_glc = ctx;
} else
{
@@ -1090,7 +1091,7 @@ int X11OpenGLWindow::fileOpenDialog(char* filename, int maxNameLength)
{
filename[len-1]=0;
printf("file open (length=%d) = %s\n", len,filename);
}
}
}
pclose(output);
} else
@@ -1099,5 +1100,5 @@ int X11OpenGLWindow::fileOpenDialog(char* filename, int maxNameLength)
}
MyXRaiseWindow(m_data->m_dpy, m_data->m_win);
return len;
}