Commit a1901343 authored by schultz's avatar schultz

use glewExperimental for core profiles.

Otherwise extensions might not be loaded properly which causes segfaults
parent baa3af2d
......@@ -48,11 +48,14 @@
\*===========================================================================*/
#include "glew_wrappers.hh"
#include <OpenFlipper\common\GlobalOptions.hh>
#include <GL/glew.h>
#include <stdio.h>
DLLEXPORT void initGlew() {
if (OpenFlipper::Options::glVersion().first >= 3 && OpenFlipper::Options::glVersion().second >= 2 && OpenFlipper::Options::coreProfile())
glewExperimental = GL_TRUE;
GLenum err = glewInit();
if (GLEW_OK != err)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment