Fix running on Linux / Intel Mesa drivers

* Explicitly request a GL 3.2 context
* Enable 'experimental' extensions on glew (This appears necessary to get glew to work with explictly set GL versions)
This commit is contained in:
Hein-Pieter van Braam 2015-07-07 21:11:26 +02:00
parent 63ae781d24
commit 5d91cf90b3
3 changed files with 6 additions and 3 deletions

View file

@ -29,6 +29,7 @@ namespace GL
{
void gglPerformBinds()
{
glewExperimental = GL_TRUE;
GLenum err = glewInit();
AssertFatal(GLEW_OK == err, avar("Error: %s\n", glewGetErrorString(err)) );
}