Revision: 78246
          http://sourceforge.net/p/brlcad/code/78246
Author:   starseeker
Date:     2021-02-16 14:59:10 +0000 (Tue, 16 Feb 2021)
Log Message:
-----------
It doesn't show up with a pix-fb, but Qt's OpenGL widget won't allow calling 
makeCurrent from any thread but the main one.  At a glance, it looks like we 
may need to change how we're rendering the pixels to the framebuffer, possibly 
using the isst approach.

Modified Paths:
--------------
    brlcad/trunk/src/libdm/qtgl/if_qtgl.cpp

Modified: brlcad/trunk/src/libdm/qtgl/if_qtgl.cpp
===================================================================
--- brlcad/trunk/src/libdm/qtgl/if_qtgl.cpp     2021-02-16 03:33:41 UTC (rev 
78245)
+++ brlcad/trunk/src/libdm/qtgl/if_qtgl.cpp     2021-02-16 14:59:10 UTC (rev 
78246)
@@ -659,9 +659,9 @@
     ret = 0;
 
     unsigned char *cp;
-    int ybase;
+    //int ybase;
 
-    ybase = ystart;
+    //ybase = ystart;
     cp = (unsigned char *)(pixelp);
 
     while (pix_count) {
@@ -717,6 +717,7 @@
            break;
     }
 
+#if 0
     QTGL(ifp)->glc->makeCurrent();
     if (xstart + count < (size_t)ifp->i->if_width) {
        qtgl_xmit_scanlines(ifp, ybase, 1, xstart, count);
@@ -724,7 +725,8 @@
        /* Normal case -- multi-pixel write */
        qtgl_xmit_scanlines(ifp, 0, ifp->i->if_height, 0, ifp->i->if_width);
     }
-    glFlush();
+    //glFlush();
+#endif
     QTGL(ifp)->glc->update();
 
     return ret;

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