Fix crash on startup on mac

This commit is contained in:
Bradley Austin Davis 2015-08-08 15:26:38 -07:00
parent 74e79f15d8
commit 2878950dbe

View file

@ -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();