Skip to content

implement glInfo without PyOpenGL#2073

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:glinfo_without_pyopengl
Nov 12, 2021
Merged

implement glInfo without PyOpenGL#2073
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:glinfo_without_pyopengl

Conversation

@pijyoi
Copy link
Copy Markdown
Contributor

@pijyoi pijyoi commented Nov 12, 2021

Github Actions has moved to macOS Big Sur for some runners. This causes:

  1. an early failure on Python 3.7
    • this is because the CI workflow has a dependency on PyOpenGL when it executes pyqtgraph.opengl.glInfo.
  2. OpenGL examples to be skipped on Python 3.8
    • however, the OpenGL load failure had been fixed since 3.8.10

This PR fixes (1) by reimplementing glInfo without using PyOpenGL. (2) is fixed by updating the skip constraints.
It adds some more useful info like VENDOR, RENDERER and isOpenGLES.

However, it loses the maximum TEXTURE size info.
This is because PySide bindings do not have a working glGetIntegerv function.

Note: The file was moved from pyqtgraph/opengl/glInfo.py to pyqtgraph/util/glinfo.py because pyqtgraph/opengl/__init__.py already triggers import of PyOpenGL.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Nov 12, 2021

Thanks for this @pijyoi this LGTM 👍🏻

@j9ac9k j9ac9k merged commit bc4d40a into pyqtgraph:master Nov 12, 2021
@pijyoi pijyoi deleted the glinfo_without_pyopengl branch November 12, 2021 16:51
@pijyoi
Copy link
Copy Markdown
Contributor Author

pijyoi commented Aug 6, 2022

PySide6 seems to be getting a working glGetIntegerv function.
https://code.qt.io/cgit/pyside/pyside-setup.git/commit/?id=9fb437cd2d017648f4bfc522b47f9488b825909e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants