Fix build of DrmBackend with gbm dependency

This commit is contained in:
Martin Gräßlin 2015-04-24 15:14:53 +02:00
parent 389d81731b
commit c52f542261

View file

@ -480,8 +480,9 @@ OpenGLBackend *DrmBackend::createOpenGLBackend()
{
#if HAVE_GBM
return new EglGbmBackend(this);
#endif
#else
return AbstractBackend::createOpenGLBackend();
#endif
}
DrmBuffer *DrmBackend::createBuffer(const QSize &size)
@ -497,6 +498,8 @@ DrmBuffer *DrmBackend::createBuffer(gbm_surface *surface)
DrmBuffer *b = new DrmBuffer(this, surface);
m_buffers << b;
return b;
#else
return nullptr;
#endif
}