
#include "GLPlatform.hpp"
#include <stdexcept>

void glPlatformInit()
{
#ifdef GL_PLATFORM_USING_WIN
  GLenum err = glewInit();
  if (GLEW_OK != err)
  {
    throw std::runtime_error("GLEW failed to initialize.");
  }
#endif
}



#include "GLPlatform.hpp"

void glPlatformInit()
{
#ifdef GL_PLATFORM_USING_WIN
  glewInit();
#endif
}


--- 
+++ 
@@ -1,10 +1,15 @@
 
 #include "GLPlatform.hpp"
+#include <stdexcept>
 
 void glPlatformInit()
 {
 #ifdef GL_PLATFORM_USING_WIN
-  glewInit();
+  GLenum err = glewInit();
+  if (GLEW_OK != err)
+  {
+    throw std::runtime_error("GLEW failed to initialize.");
+  }
 #endif
 }
 
Add exception if GLEW fails to initialize.
