brjathu commited on
Commit
84897e1
1 Parent(s): 08fa512

Adding HF files

Browse files
vendor/pyrender/pyrender/offscreen.py CHANGED
@@ -127,11 +127,11 @@ class OffscreenRenderer(object):
127
  gc.collect()
128
 
129
  def _create(self):
130
- import os
131
- os.environ['DISPLAY'] = ':1'
132
- from pyrender.platforms.pyglet_platform import PygletPlatform
133
- self._platform = PygletPlatform(self.viewport_width,
134
- self.viewport_height)
135
  # if 'PYOPENGL_PLATFORM' not in os.environ:
136
  # elif os.environ['PYOPENGL_PLATFORM'] == 'egl':
137
  # from pyrender.platforms import egl
@@ -141,9 +141,9 @@ class OffscreenRenderer(object):
141
  # self.viewport_height,
142
  # device=egl_device)
143
  # elif os.environ['PYOPENGL_PLATFORM'] == 'osmesa':
144
- # from pyrender.platforms.osmesa import OSMesaPlatform
145
- # self._platform = OSMesaPlatform(self.viewport_width,
146
- # self.viewport_height)
147
  # else:
148
  # raise ValueError('Unsupported PyOpenGL platform: {}'.format(
149
  # os.environ['PYOPENGL_PLATFORM']
 
127
  gc.collect()
128
 
129
  def _create(self):
130
+ # import os
131
+ # os.environ['DISPLAY'] = ':1'
132
+ # from pyrender.platforms.pyglet_platform import PygletPlatform
133
+ # self._platform = PygletPlatform(self.viewport_width,
134
+ # self.viewport_height)
135
  # if 'PYOPENGL_PLATFORM' not in os.environ:
136
  # elif os.environ['PYOPENGL_PLATFORM'] == 'egl':
137
  # from pyrender.platforms import egl
 
141
  # self.viewport_height,
142
  # device=egl_device)
143
  # elif os.environ['PYOPENGL_PLATFORM'] == 'osmesa':
144
+ from pyrender.platforms.osmesa import OSMesaPlatform
145
+ self._platform = OSMesaPlatform(self.viewport_width,
146
+ self.viewport_height)
147
  # else:
148
  # raise ValueError('Unsupported PyOpenGL platform: {}'.format(
149
  # os.environ['PYOPENGL_PLATFORM']