Fix build of DrmBackend with gbm dependency
This commit is contained in:
parent
389d81731b
commit
c52f542261
1 changed files with 4 additions and 1 deletions
|
@ -480,8 +480,9 @@ OpenGLBackend *DrmBackend::createOpenGLBackend()
|
||||||
{
|
{
|
||||||
#if HAVE_GBM
|
#if HAVE_GBM
|
||||||
return new EglGbmBackend(this);
|
return new EglGbmBackend(this);
|
||||||
#endif
|
#else
|
||||||
return AbstractBackend::createOpenGLBackend();
|
return AbstractBackend::createOpenGLBackend();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
DrmBuffer *DrmBackend::createBuffer(const QSize &size)
|
DrmBuffer *DrmBackend::createBuffer(const QSize &size)
|
||||||
|
@ -497,6 +498,8 @@ DrmBuffer *DrmBackend::createBuffer(gbm_surface *surface)
|
||||||
DrmBuffer *b = new DrmBuffer(this, surface);
|
DrmBuffer *b = new DrmBuffer(this, surface);
|
||||||
m_buffers << b;
|
m_buffers << b;
|
||||||
return b;
|
return b;
|
||||||
|
#else
|
||||||
|
return nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue