From 0e0b7cb9f88771c3283b166ec42c467c9becdc18 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Wed, 21 Feb 2018 08:59:06 -0800 Subject: [PATCH] glew->glad --- examples/OpenGLWindow/Win32OpenGLWindow.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/OpenGLWindow/Win32OpenGLWindow.cpp b/examples/OpenGLWindow/Win32OpenGLWindow.cpp index 98c0ab70d..28eab35cb 100644 --- a/examples/OpenGLWindow/Win32OpenGLWindow.cpp +++ b/examples/OpenGLWindow/Win32OpenGLWindow.cpp @@ -18,13 +18,14 @@ subject to the following restrictions: #include "Win32OpenGLWindow.h" + #include "OpenGLInclude.h" //#include "Bullet3Common/b3Vector3.h" #include "Win32InternalWindowData.h" #include - +#include void Win32OpenGLWindow::enableOpenGL() { @@ -83,6 +84,12 @@ void Win32OpenGLWindow::createWindow(const b3gWindowConstructionInfo& ci) //VideoDriver = video::createOpenGLDriver(CreationParams, FileSystem, this); enableOpenGL(); + if(!gladLoadGL()) { + printf("gladLoadGL failed!\n"); + exit(-1); + } + + }