From a60c3130e39e80289a5f62a6211f98a03043899e Mon Sep 17 00:00:00 2001 From: Aleix Pol Gonzalez Date: Thu, 23 Feb 2023 21:52:01 +0000 Subject: [PATCH] backends/drm: Make sure attributes are always initialized It only gets set on specific cases and assumes false as default anyway. kwin/src/backends/drm/drm_gpu.cpp:691:12: runtime error: load of value 190, which is not a valid value for type 'bool' --- src/backends/drm/drm_gpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_gpu.h b/src/backends/drm/drm_gpu.h index 25cbf105a9..566e3fa947 100644 --- a/src/backends/drm/drm_gpu.h +++ b/src/backends/drm/drm_gpu.h @@ -130,7 +130,7 @@ private: bool m_addFB2ModifiersSupported = false; bool m_isNVidia; bool m_isVirtualMachine; - bool m_asyncPageflipSupported; + bool m_asyncPageflipSupported = false; bool m_isRemoved = false; clockid_t m_presentationClock; gbm_device *m_gbmDevice;