title: Create a fake OpenGL context for sake of loading extensions
body: <p>I've been playing with Derelict3&amp;glfw to use OpenGL in D according to <a href="http://www.dsource.org/forums/viewtopic.php?t=6231" rel="nofollow">this</a>, if I want to use extensions, I need to create a context first, and this is done by creating a window with glfw and set it as the current context. After the context is created and set, I need to use <code>DerelictGL3.reload()</code> to load all the extensions.</p>
  
  <p>Now, I want to do all the preparations before I create the window. One of those preparations is to load and compile all the shader programs. But this required the shader extension, which required <code>Derelict3GL.reload()</code>, which refuses to run without a context...</p>
  
  <p>So, I've used this hackish hack:</p>
  
  <pre><code>auto tmpWindow=glfwCreateWindow(1,1,"",null,null);
  glfwMakeContextCurrent(tmpWindow);
  DerelictGL3.reload();
  glfwDestroyWindow(tmpWindow);
  </code></pre>
  
  <p>This works - I can now load and compile the shader programs <strong>and only then</strong> open the real window. But this seems a bit too hackish to me. Is there a proper way to fake a context, or to load the extensions without a context?</p>