Skip to content

Commit 1d04e56

Browse files
committed
Enable depth test by default in visualisation
1 parent 1434106 commit 1d04e56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pywavefront/visualization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def draw_material(material, face=GL_FRONT_AND_BACK):
8585
glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT)
8686
glPushAttrib(GL_CURRENT_BIT | GL_ENABLE_BIT | GL_LIGHTING_BIT)
8787
glEnable(GL_CULL_FACE)
88+
glEnable(GL_DEPTH_TEST)
8889
glCullFace(GL_BACK)
8990

9091
# Fall back to ambient texture if no diffuse

0 commit comments

Comments
 (0)