Commit ffad9831 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'fixGlewWindows' into 'master'

use glewExperimental for core profiles.

See merge request !101
parents a91dd1d3 a1901343
......@@ -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