bluestyle97 commited on
Commit
3472618
·
verified ·
1 Parent(s): 20c175b

Update freesplatter/utils/mesh_renderer.py

Browse files
freesplatter/utils/mesh_renderer.py CHANGED
@@ -297,7 +297,7 @@ class MeshRenderer(nn.Module):
297
  assert isinstance(ssaa, int) and ssaa >= 1
298
  self.ssaa = ssaa
299
  self.texture_filter = texture_filter
300
- self.glctx = dr.RasterizeCudaContext(device=device)
301
 
302
  def forward(self, meshes, poses, intrinsics, h, w, shading_fun=None,
303
  dilate_edges=0, normal_bg=[0.5, 0.5, 1.0], aa=True, render_vc=False):
 
297
  assert isinstance(ssaa, int) and ssaa >= 1
298
  self.ssaa = ssaa
299
  self.texture_filter = texture_filter
300
+ self.glctx = dr.RasterizeGLContext(output_db=False)
301
 
302
  def forward(self, meshes, poses, intrinsics, h, w, shading_fun=None,
303
  dilate_edges=0, normal_bg=[0.5, 0.5, 1.0], aa=True, render_vc=False):