From 2878950dbe481e425346ae3b33a2909ee8d277c7 Mon Sep 17 00:00:00 2001 From: Bradley Austin Davis Date: Sat, 8 Aug 2015 15:26:38 -0700 Subject: [PATCH] Fix crash on startup on mac --- interface/src/Application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 68186ea75c..fc43c0d25c 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -902,6 +902,9 @@ void doInBatch(RenderArgs* args, F f) { void Application::paintGL() { PROFILE_RANGE(__FUNCTION__); + if (nullptr == _displayPlugin) { + return; + } auto displayPlugin = getActiveDisplayPlugin(); displayPlugin->preRender(); _offscreenContext->makeCurrent();