]> git.cworth.org Git - apitrace/blobdiff - glws_wgl.cpp
Cleanup glproc.
[apitrace] / glws_wgl.cpp
index 2487eb077fb46016f0dafbf6c3bb08b79892f427..63ce5fea1444748ef2f6c3956d1a732cb3fdef6d 100644 (file)
@@ -23,7 +23,7 @@
  *
  **************************************************************************/
 
-#include "glimports.hpp"
+#include "glproc.hpp"
 #include "glws.hpp"
 
 
@@ -188,6 +188,10 @@ public:
 
 void
 init(void) {
+    /*
+     * OpenGL library must be loaded by the time we call GDI.
+     */
+    __libGlHandle = LoadLibraryA("OPENGL32");
 }
 
 void