From e427c8510d56058550bf516f637d07f39676012c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Apr 2012 23:25:15 +0000 Subject: OSX implementation. --- pugl/pugl_x11.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pugl/pugl_x11.c') diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index c6cc2b5..f4aa933 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -176,8 +176,8 @@ puglReshape(PuglWindow* win, int width, int height) // No custom reshape function, do something reasonable glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluPerspective(45.0f, win->width/(float)win->height, 1.0f, 10.0f); - glViewport(0, 0, win->width, win->height); + gluPerspective(45.0f, width/(float)height, 1.0f, 10.0f); + glViewport(0, 0, width, height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); @@ -203,6 +203,8 @@ puglDisplay(PuglWindow* win) if (win->impl->doubleBuffered) { glXSwapBuffers(win->impl->display, win->impl->win); } + + win->redisplay = false; } PuglStatus -- cgit v1.2.3