Removed glut from subdivider viewer
This commit is contained in:
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user