
#include "GLPlatform.hpp"

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



#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
}


Add exception if GLEW fails to initialize.
Add exception if GLEW fails to initialize.
