platforms/drm: exit more cleanly if we can't find a buffer config

This commit is contained in:
Xaver Hugl 2021-08-26 17:45:46 +02:00
parent ef48c247e6
commit 83ccfbb571

View file

@ -127,7 +127,9 @@ void EglGbmBackend::init()
bool EglGbmBackend::initRenderingContext()
{
initBufferConfigs();
if (!initBufferConfigs()) {
return false;
}
if (isPrimary()) {
if (!createContext() || !makeCurrent()) {
return false;