Commit a23d2359 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: check egl config before creating gbm surface

parent 9d3f77f6
Pipeline #158844 passed with stage
in 31 minutes and 27 seconds
......@@ -291,7 +291,7 @@ bool EglGbmBackend::prefer10bpc() const
EGLConfig EglGbmBackend::config(uint32_t format) const
return m_configs[format];
return m_configs.value(format, EGL_NO_CONFIG_KHR);
QSharedPointer<DrmPipelineLayer> EglGbmBackend::createDrmPipelineLayer(DrmPipeline *pipeline)
......@@ -200,6 +200,9 @@ bool EglGbmLayer::createGbmSurface(uint32_t format, const QVector<uint64_t> &mod
const auto size = m_pipeline->bufferSize();
const auto config = m_eglBackend->config(format);
if (config == EGL_NO_CONFIG_KHR) {
return false;
QSharedPointer<GbmSurface> gbmSurface;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment