Revision: 54038
http://brlcad.svn.sourceforge.net/brlcad/?rev=54038&view=rev
Author: brlcad
Date: 2012-12-11 15:38:41 +0000 (Tue, 11 Dec 2012)
Log Message:
-----------
don't try to make a glx context current for non-expose events. the context
might not even exist (like when the graphics window is closed).
Modified Paths:
--------------
brlcad/trunk/src/mged/dm-ogl.c
Modified: brlcad/trunk/src/mged/dm-ogl.c
===================================================================
--- brlcad/trunk/src/mged/dm-ogl.c 2012-12-11 14:31:38 UTC (rev 54037)
+++ brlcad/trunk/src/mged/dm-ogl.c 2012-12-11 15:38:41 UTC (rev 54038)
@@ -176,13 +176,13 @@
Ogl_doevent(ClientData UNUSED(clientData),
XEvent *eventPtr)
{
- if (!glXMakeCurrent(((struct dm_xvars *)dmp->dm_vars.pub_vars)->dpy,
- ((struct dm_xvars *)dmp->dm_vars.pub_vars)->win,
- ((struct ogl_vars *)dmp->dm_vars.priv_vars)->glxc))
- /* allow further processing of this event */
- return TCL_OK;
+ if (eventPtr->type == Expose && eventPtr->xexpose.count == 0) {
+ if (!glXMakeCurrent(((struct dm_xvars *)dmp->dm_vars.pub_vars)->dpy,
+ ((struct dm_xvars *)dmp->dm_vars.pub_vars)->win,
+ ((struct ogl_vars *)dmp->dm_vars.priv_vars)->glxc))
+ /* allow further processing of this event */
+ return TCL_OK;
- if (eventPtr->type == Expose && eventPtr->xexpose.count == 0) {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
dirty = 1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits