Commit 8d186efa authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

drm: Do not check egl extensions before setting them up

parent 1a9b5259
......@@ -86,10 +86,6 @@ bool EglGbmBackend::initializeEgl()
// Use eglGetPlatformDisplayEXT() to get the display pointer
// if the implementation supports it.
if (display == EGL_NO_DISPLAY) {
if (!supportsSurfacelessContext()) {
setFailed("EGL_KHR_surfaceless_context extension is unavailable!");
return false;
}
const bool hasMesaGBM = hasClientExtension(QByteArrayLiteral("EGL_MESA_platform_gbm"));
const bool hasKHRGBM = hasClientExtension(QByteArrayLiteral("EGL_KHR_platform_gbm"));
const GLenum platform = hasMesaGBM ? EGL_PLATFORM_GBM_MESA : EGL_PLATFORM_GBM_KHR;
......@@ -125,6 +121,12 @@ void EglGbmBackend::init()
setFailed("Could not initialize egl");
return;
}
if (!supportsSurfacelessContext()) {
setFailed("EGL_KHR_surfaceless_context extension is unavailable!");
return false;
}
if (!initRenderingContext()) {
setFailed("Could not initialize rendering context");
return;
......
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