Cleaning up OpenSpaceEngine and RenderEngine

This commit is contained in:
Jonas Strandstedt
2014-10-23 18:13:40 +02:00
parent 9b1c993e89
commit 5225323a2b
6 changed files with 124 additions and 309 deletions

View File

@@ -89,7 +89,12 @@ int main(int argc, char** argv)
// try to open a window
LDEBUG("Initialize SGCT Engine");
const bool initSuccess = _sgctEngine->init(sgct::Engine::OpenGL_4_3_Core_Profile);
#ifdef __APPLE__
sgct::Engine::RunMode rm = sgct::Engine::RunMode::OpenGL_4_1_Core_Profile;
#else
sgct::Engine::RunMode rm = sgct::Engine::RunMode::OpenGL_4_3_Core_Profile;
#endif
const bool initSuccess = _sgctEngine->init(rm);
if (!initSuccess) {
LFATAL("Initializing failed");
// could not open a window, deallocates and exits