From 262bf55219dea428b7c2c0cc7157e51d3f37c48c Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 18 Feb 2010 00:22:58 +1300 Subject: [PATCH] fix stupid event backlog. bug? --- OpenRa.Gl/GraphicsDevice.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRa.Gl/GraphicsDevice.cs b/OpenRa.Gl/GraphicsDevice.cs index 3477ca349f..62281faef0 100644 --- a/OpenRa.Gl/GraphicsDevice.cs +++ b/OpenRa.Gl/GraphicsDevice.cs @@ -55,8 +55,7 @@ namespace OpenRa.GlRenderer public GraphicsDevice( int width, int height, bool fullscreen, bool vsync ) { Glfw.glfwInit(); - Glfw.glfwOpenWindow(width, height, 0, 0, 0, 0, 0, 0, /*fullscreen ? Glfw.GLFW_FULLSCREEN :*/ Glfw.GLFW_WINDOW); - Glfw.glfwSetWindowTitle("OpenRA (OpenGL version)"); + Glfw.glfwOpenWindow(width, height, 0, 0, 0, 0, 0, 0, fullscreen ? Glfw.GLFW_FULLSCREEN : Glfw.GLFW_WINDOW); bool initDone = false; Glfw.glfwSetMouseButtonCallback( mouseButtonCallback = ( button, action ) => { @@ -138,6 +137,7 @@ namespace OpenRa.GlRenderer public void Present() { Glfw.glfwSwapBuffers(); + Glfw.glfwPollEvents(); CheckGlError(); }