<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi list,</p>
    <p>I am trying to get info on a client's machine 3D capabilities,
      where the 3D views are showing nothing, via Python in QGIS. I'd
      like to find their GL_RENDERER, GL_VERSION etc.</p>
    <p>Basically debugging <a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/issues/40324">https://github.com/qgis/QGIS/issues/40324</a> but
      without the possibility to use third-party tools on the system.</p>
    <p>It looks like QGIS uses a shared OpenGL context:
<a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/blob/e8b8108f3f013d96014bbde50e6935bf1dc4414a/src/app/main.cpp#L961">https://github.com/qgis/QGIS/blob/e8b8108f3f013d96014bbde50e6935bf1dc4414a/src/app/main.cpp#L961</a></p>
    <p>Checking it out on my system yields:</p>
    <p>>>>
QCoreApplication.testAttribute(Qt.ApplicationAttribute.AA_ShareOpenGLContexts)<br>
      True</p>
    <p>but there are no extensions for example:<br>
      <br>
      >>> QOpenGLContext.globalShareContext().extensions()<br>
      set()<br>
      <br>
    </p>
    <p>While that set is empty, if I enable the "GL info" debug overlay
      in a 3D view, it does show a list of many supported extensions.</p>
    <p>Maybe I am using it wrong?<br>
      Does the 3D view actually use a different OpenGL context?<br>
      Is there a way to access info about that context from PyQGIS?</p>
    <p>Cheers, Hannes</p>
    <div class="moz-signature">
      <div>
        <table style="direction: ltr; color: rgb(0, 0, 0);">
          <tbody>
            <tr>
              <td
style="padding-right: 4.5pt; vertical-align: top; width: 200px; height: 37px;">
                <p
style="margin: 0; font-family: 'Ubuntu Medium', Ubuntu, sans-serif; font-size: 9pt; color: black; font-weight: 500;">Johannes
                  Kröger
                </p>
                <p
style="margin: 0; font-family: 'Ubuntu Light', Ubuntu, sans-serif; font-weight: 300; font-size: 8pt; color: black;">
                  GIS-Consulting/-Entwicklung
                </p>
                <br>
              </td>
            </tr>
            <tr>
              <td
style="width:192px; height:39px; text-align:left; padding:0; margin:0; overflow:visible;">
                <img alt="WhereGroup Logo"
                  src="cid:part1.gLGVdhfg.7e92t24s@wheregroup.com"
                  style="max-width: 100%; height: auto; display: block;">
              </td>
            </tr>
            <tr>
              <td
style="padding: 4.5pt 4.5pt 4.5pt 0; width: 192px; height: 65px;">
                <p
style="margin: 0; font-family: 'Ubuntu Light', Ubuntu, sans-serif; font-size: 8pt; color: #747577;">
                  <br>
                  WhereGroup GmbH<br>
                  Lange Reihe 29<br>
                  20099 Hamburg<br>
                  Germany<br>
                  <br>
                  +49 228 90 90 38 36<br>
                  <br>
                  <a class="moz-txt-link-abbreviated" href="mailto:johannes.kroeger@wheregroup.com">johannes.kroeger@wheregroup.com</a><br>
                  <a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a><br>
                  <br>
                  Geschäftsführer:<br>
                  Olaf Knopp, Peter Stamm<br>
                  Amtsgericht Bonn, HRB 9885 <br>
                </p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </body>
</html>