From 3cf6dfd7e6ac6f122db730de2a0846960eabb7bd Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Thu, 11 Dec 2025 01:32:11 +0100 Subject: [PATCH] opengl: default initialize m_capStatus (#12619) ubsan reports under wonky situation a runtime error of uninitialized value lookups because of m_capStatus isnt initialized. so default initialize it. OpenGL.cpp:3331:26: runtime error: load of value 190, which is not a valid value for type 'bool' --- src/render/OpenGL.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 8d0c48aa1..855a94398 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -355,7 +355,7 @@ class CHyprOpenGLImpl { GLsizei height = 0; } m_lastViewport; - std::array m_capStatus; + std::array m_capStatus = {}; std::vector m_drmFormats; bool m_hasModifiers = false;