fix closing window

This commit is contained in:
Simon Danisch 2016-11-22 17:16:01 +01:00
parent 74c2db4909
commit 81e0868725

View File

@ -159,12 +159,12 @@ function create_window(plt::Plot{GLVisualizeBackend}, visible)
# make sure we have any screen open # make sure we have any screen open
if isempty(GLVisualize.get_screens()) if isempty(GLVisualize.get_screens())
# create a fresh, new screen # create a fresh, new screen
screen = GLVisualize.glscreen( s = GLVisualize.glscreen(
"Plot", "Plot",
resolution = plt[:size], resolution = plt[:size],
visible = visible visible = visible
) )
@async GLWindow.waiting_renderloop(screen) @async GLWindow.waiting_renderloop(s)
end end
# now lets get ourselves a permanent Plotting screen # now lets get ourselves a permanent Plotting screen
plot_screens = get_plot_screen(GLVisualize.get_screens(), name) plot_screens = get_plot_screen(GLVisualize.get_screens(), name)