Revision: 78266
          http://sourceforge.net/p/brlcad/code/78266
Author:   starseeker
Date:     2021-02-18 16:17:02 +0000 (Thu, 18 Feb 2021)
Log Message:
-----------
Explain what the symptoms are if these values aren't initialized.

Modified Paths:
--------------
    brlcad/trunk/src/isst/isstgl.cpp

Modified: brlcad/trunk/src/isst/isstgl.cpp
===================================================================
--- brlcad/trunk/src/isst/isstgl.cpp    2021-02-18 16:13:50 UTC (rev 78265)
+++ brlcad/trunk/src/isst/isstgl.cpp    2021-02-18 16:17:02 UTC (rev 78266)
@@ -33,6 +33,11 @@
     TIENET_BUFFER_INIT(buffer_image);
 
     tile.format = RENDER_CAMERA_BIT_DEPTH_24;
+
+    // If these are not initialized, output pixel placement in the buffer may
+    // be randomly offset - you may see no image, or an image in the wrong
+    // place (or it may happen to work if the values happen to be zero
+    // anyway...)
     tile.orig_x = 0;
     tile.orig_y = 0;
 

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