Commit 83b108b4 authored by Martin Schultz's avatar Martin Schultz

gl_loadgen working on apple

* added missing ifdef
* added ifdef for init functions as apple needs no gl loader
* include qgl instead of glloadgen header on apple systems
parent de595142
......@@ -447,7 +447,7 @@ int main(int argc, char **argv)
}
}
//TODO: find out why just init functions if not apple...
//On Apple systems the extensions are loaded automagically by qt so dont call the init functions or include the opengl headers (gl_compat_4_4).
#ifndef __APPLE__
initOpenGLFunctions();
#endif
......
......@@ -112,7 +112,9 @@ void QtGLGraphicsScene::drawBackground(QPainter *_painter, const QRectF &_rect)
{
// we use glLoadGen to manage extensions :/
// initialize it first
ogl_LoadFunctions();
#ifndef __APPLE__
ogl_LoadFunctions(); //maybe replace this with a call to the wrapper function. initOpenGLFunctions()
#endif
for (unsigned int i = 0; i < views_->size (); i++)
{
views_->at(i)->initializeGL ();
......
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