- fixed freetype-gl on windows compiler

- deprecated ancient opengl extension code and replaced it with glew
- testing new font renderer on windows (still in progress need to fix newlines)
(now need to check the Linux build and possibly make adjustments)
This commit is contained in:
Mark Vejvoda
2011-11-18 08:28:42 +00:00
parent 0e9b4851fd
commit d0acde5d88
18 changed files with 111 additions and 35 deletions

View File

@@ -161,6 +161,14 @@ void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,bool
SDL_WM_GrabInput(SDL_GRAB_OFF);
}
GLuint err = glewInit();
if (GLEW_OK != err) {
fprintf(stderr, "Error [main]: glewInit failed: %s\n", glewGetErrorString(err));
//return 1;
throw std::runtime_error((char *)glewGetErrorString(err));
}
}
void PlatformContextGl::end() {