Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
8d186efa
Commit
8d186efa
authored
Apr 21, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
drm: Do not check egl extensions before setting them up
parent
1a9b5259
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/platforms/drm/egl_gbm_backend.cpp
View file @
8d186efa
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment