[GRASS-SVN] r52342 - grass/branches/develbranch_6/lib/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 8 01:22:27 PDT 2012
Author: mmetz
Date: 2012-07-08 01:22:26 -0700 (Sun, 08 Jul 2012)
New Revision: 52342
Modified:
grass/branches/develbranch_6/lib/nviz/render.c
Log:
nviz lib: XOpenDisplay must be followed by XCloseDisplay
Modified: grass/branches/develbranch_6/lib/nviz/render.c
===================================================================
--- grass/branches/develbranch_6/lib/nviz/render.c 2012-07-08 08:21:41 UTC (rev 52341)
+++ grass/branches/develbranch_6/lib/nviz/render.c 2012-07-08 08:22:26 UTC (rev 52342)
@@ -62,9 +62,10 @@
void Nviz_destroy_render_window(struct render_window *rwin)
{
#if defined(OPENGL_X11)
- glXDestroyContext(rwin->displayId, rwin->contextId);
glXDestroyGLXPixmap(rwin->displayId, rwin->windowId);
XFreePixmap(rwin->displayId, rwin->pixmap);
+ glXDestroyContext(rwin->displayId, rwin->contextId);
+ XCloseDisplay(rwin->displayId);
#elif defined(OPENGL_AQUA)
aglDestroyPixelFormat(rwin->pixelFmtId);
aglDestroyContext(rwin->contextId);
More information about the grass-commit
mailing list