Revision: 75636
          http://sourceforge.net/p/brlcad/code/75636
Author:   starseeker
Date:     2020-04-29 18:38:00 +0000 (Wed, 29 Apr 2020)
Log Message:
-----------
Don't bother drawing if the image is on its way out.

Modified Paths:
--------------
    brlcad/trunk/src/libdm/tests/tcl_img.cpp

Modified: brlcad/trunk/src/libdm/tests/tcl_img.cpp
===================================================================
--- brlcad/trunk/src/libdm/tests/tcl_img.cpp    2020-04-29 17:47:52 UTC (rev 
75635)
+++ brlcad/trunk/src/libdm/tests/tcl_img.cpp    2020-04-29 18:38:00 UTC (rev 
75636)
@@ -227,6 +227,12 @@
 
     struct img_data *idata = (struct img_data *)clientData;
 
+    // If we're mid-render, don't draw - we're about to get superceded by
+    // another frame.
+    if (idata->render_running) {
+       return TCL_OK;
+    }
+
     // Unpack the coordinates (checking errno, although it may not truly be
     // necessary if we trust Tk to always give us valid coordinates...)
     char *p_end;

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to