Okay, so I'm trying to start a project using GLFW. But every time I open a window, it at first appears to have frozen (white window, "waiting" cursor, wont accept any input whatsoever), but after about 30-60 seconds it creates the window that it's supposed to. I've tried this with 3 or 4 different programs and the result is always the same. Am I setting up my project wrong or something?
I'm using Visual Studio 2010 Ultimate. Here's my source code:
It's not the cleanest code, but like I said I've tried a few different simple programs and the result is the same - a 30 second - minute long delay until the window opens.Code :#define GLEW_STATIC #include "GL/glew.h" #include "GL/wglew.h" #include "GL/glfw.h" #include <stdio.h> #pragma comment (lib, "glfw.lib") #pragma comment (lib, "opengl32.lib") #pragma comment (lib, "glu32.lib") int main(int argc, char** args) { bool running = true; glfwInit(); glewInit(); glfwOpenWindow(640, 480, 8, 8, 8, 8, 24, 0, GLFW_WINDOW); glClearColor(0.5, 0.5, 1.0, 1.0); while (running) { ///////////////////// // Begin Main Loop // glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glfwSwapBuffers(); running = !glfwGetKey(GLFW_KEY_ESC) && glfwGetWindowParam(GLFW_OPENED); } glfwTerminate(); return 0; }



