Commit 0e0d5c6f authored by Dalai Felinto's avatar Dalai Felinto
Browse files

Fixups for preview

parent aba36557
......@@ -69,8 +69,8 @@ class HMD_Base:
def __init__(self, name):
self._name = name
self._projection_matrix = Matrix()
self._modelview_matrix = Matrix()
self._projection_matrix = Matrix.Identity(4)
self._modelview_matrix = Matrix.Identity(4)
self._interpupillary_distance = Vector((0.0, 0.0))
self._width = 0
self._height = 0
......
......@@ -68,8 +68,7 @@ class Preview:
glViewport(viewport[0], viewport[1], width, height)
glScissor(viewport[0], viewport[1], width, height)
glEnable(GL_DEPTH_TEST)
glDepthFunc(GL_LESS)
glDisable(GL_DEPTH_TEST)
view_setup()
......@@ -82,7 +81,6 @@ class Preview:
glBindTexture(GL_TEXTURE_2D, act_tex[0])
glDisable(GL_TEXTURE_2D)
glDisable(GL_DEPTH_TEST)
view_reset()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment