platforms/drm: exit more cleanly if we can't find a buffer config
This commit is contained in:
parent
ef48c247e6
commit
83ccfbb571
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ void EglGbmBackend::init()
|
|||
|
||||
bool EglGbmBackend::initRenderingContext()
|
||||
{
|
||||
initBufferConfigs();
|
||||
if (!initBufferConfigs()) {
|
||||
return false;
|
||||
}
|
||||
if (isPrimary()) {
|
||||
if (!createContext() || !makeCurrent()) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue