diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2025-12-11 01:32:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-11 00:32:11 +0000 |
| commit | 3cf6dfd7e6ac6f122db730de2a0846960eabb7bd (patch) | |
| tree | 6f9d7d267aaab186c8553dcdb8c9547b762968c0 /src/render/OpenGL.hpp | |
| parent | f58c80fd3942034d58934ec4e4d93bfcfa3c786e (diff) | |
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'
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 8d0c48aa..855a9439 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -355,7 +355,7 @@ class CHyprOpenGLImpl { GLsizei height = 0; } m_lastViewport; - std::array<bool, CAP_STATUS_END> m_capStatus; + std::array<bool, CAP_STATUS_END> m_capStatus = {}; std::vector<SDRMFormat> m_drmFormats; bool m_hasModifiers = false; |
