mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 07:01:21 +02:00
- 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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user