Skip to content

Commit

Permalink
Explicitly delete the DISPLAY environment variable to force offline o…
Browse files Browse the repository at this point in the history
…peration
  • Loading branch information
mcfletch committed Dec 29, 2019
1 parent 4a40d2b commit 41e6f57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/os_egl.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
from __future__ import print_function
import os
import os, logging
log = logging.getLogger( __name__ )
if not os.environ.get( 'PYOPENGL_PLATFORM' ):
os.environ['PYOPENGL_PLATFORM'] = 'egl'
if 'DISPLAY' in os.environ:
del os.environ['DISPLAY']
import logging, contextlib
from functools import wraps
from OpenGL.GL import *
from OpenGL.EGL import *
from OpenGL import arrays
log = logging.getLogger( __name__ )

API_MAP = {
EGL_OPENGL_BIT:EGL_OPENGL_API,
Expand Down

0 comments on commit 41e6f57

Please # to comment.