Revision: 35392
          http://brlcad.svn.sourceforge.net/brlcad/?rev=35392&view=rev
Author:   ralith
Date:     2009-07-30 00:49:09 +0000 (Thu, 30 Jul 2009)

Log Message:
-----------
Minor optimization

Modified Paths:
--------------
    rt^3/trunk/src/g3d/OgreGLWidget.cxx

Modified: rt^3/trunk/src/g3d/OgreGLWidget.cxx
===================================================================
--- rt^3/trunk/src/g3d/OgreGLWidget.cxx 2009-07-29 22:14:42 UTC (rev 35391)
+++ rt^3/trunk/src/g3d/OgreGLWidget.cxx 2009-07-30 00:49:09 UTC (rev 35392)
@@ -271,7 +271,7 @@
 void OgreGLWidget::makeOgreCurrent() 
 {
 #ifdef Q_WS_X11
-    if(_display) {
+    if(_ogreContext != glXGetCurrentContext() && _display) {
        glXMakeCurrent(_display, winId(), _ogreContext);
     }
 #else


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to