mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 06:40:35 +08:00
Make OpenGL optional in tests
Summary: Add an option to run tests without the OpenGL Renderer. Reviewed By: patricklabatut Differential Revision: D53573400 fbshipit-source-id: 54a14e7b2f156d24e0c561fdb279f4a9af01b793
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c292c71c1a
commit
8772fe0de8
@@ -51,6 +51,7 @@ from .common_testing import (
|
||||
get_tests_dir,
|
||||
load_rgb_image,
|
||||
TestCaseMixin,
|
||||
usesOpengl,
|
||||
)
|
||||
|
||||
|
||||
@@ -454,6 +455,7 @@ class TestRasterizeRectangleImagesMeshes(TestCaseMixin, unittest.TestCase):
|
||||
def test_render_cow(self):
|
||||
self._render_cow(MeshRasterizer)
|
||||
|
||||
@usesOpengl
|
||||
def test_render_cow_opengl(self):
|
||||
self._render_cow(MeshRasterizerOpenGL)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user