Commit 0fed7d94 authored by Jan Möbius's avatar Jan Möbius

Removed glut from subdivider viewer

parent d7389835
...@@ -52,22 +52,12 @@ ...@@ -52,22 +52,12 @@
#include <QMessageBox> #include <QMessageBox>
#include "SubdivideWidget.hh" #include "SubdivideWidget.hh"
#ifdef ARCH_DARWIN
#include <glut.h>
#else
#include <GL/glut.h>
#endif
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// OpenGL check // OpenGL check
QApplication::setColorSpec( QApplication::CustomColor ); QApplication::setColorSpec( QApplication::CustomColor );
QApplication app(argc,argv); QApplication app(argc,argv);
#if !defined(__APPLE__)
glutInit(&argc,argv);
#endif
if ( !QGLFormat::hasOpenGL() ) { if ( !QGLFormat::hasOpenGL() ) {
QString msg = "System has no OpenGL support!"; QString msg = "System has no OpenGL support!";
QMessageBox::critical( NULL, "OpenGL", msg + argv[1], QMessageBox::Ok ); QMessageBox::critical( NULL, "OpenGL", msg + argv[1], QMessageBox::Ok );
......
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