Skip to content

Commit

Permalink
don't draw to a non existing window.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkassner committed Jan 26, 2016
1 parent 56891a6 commit cd9ef52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pupil_src/capture/pupil_detectors/visualizer_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ def update_window(self, g_pool, result ):

if self._window != None:
glfwMakeContextCurrent(self._window)
else:
return

self.image_width , self.image_height = g_pool.capture.frame_size

Expand Down

0 comments on commit cd9ef52

Please sign in to comment.