backends/drm: ignore modifier env var if modifiers are not supported
Otherwise we might crash
This commit is contained in:
parent
11175cb05e
commit
d0c12ac54d
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ bool EglGbmBackend::resetOutput(Output &output)
|
|||
QSharedPointer<GbmSurface> gbmSurface;
|
||||
bool modifiersEnvSet = false;
|
||||
static bool modifiersEnv = qEnvironmentVariableIntValue("KWIN_DRM_USE_MODIFIERS", &modifiersEnvSet) != 0;
|
||||
static bool allowModifiers = (gpu()->isNVidia() && !modifiersEnvSet) || (modifiersEnvSet && modifiersEnv);
|
||||
static bool allowModifiers = gpu()->addFB2ModifiersSupported() && ((gpu()->isNVidia() && !modifiersEnvSet) || (modifiersEnvSet && modifiersEnv));
|
||||
#if HAVE_GBM_BO_GET_FD_FOR_PLANE
|
||||
if (!allowModifiers) {
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue