mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
CI: Add support for using Opengl in Subprocess (Windows) (#1987)
There is an environment variable in glcontext which can be used for the locating the `opengl32.dll`. Use that instead of dynamically loading the DLL which is error prone.
This commit is contained in:
parent
454edecb8e
commit
fb680235bb
2 changed files with 1 additions and 10 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -13,6 +13,7 @@ jobs:
|
|||
env:
|
||||
DISPLAY: :0
|
||||
PYTEST_ADDOPTS: "--color=yes" # colors in pytest
|
||||
GLCONTEXT_WIN_LIBGL: C:\msys64\mingw64\bin\opengl32.dll
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
import os
|
||||
|
||||
if os.getenv("CI") and os.name == "nt":
|
||||
location = r"C:\msys64\mingw64\bin"
|
||||
os.environ["PATH"] = location + os.pathsep + os.getenv("PATH")
|
||||
import ctypes
|
||||
|
||||
ctypes.CDLL(r"C:\msys64\mingw64\bin\OPENGL32.dll")
|
||||
if hasattr(os, "add_dll_directory"):
|
||||
os.add_dll_directory(location)
|
||||
Loading…
Add table
Add a link
Reference in a new issue