mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-02-04 19:05:27 +00:00
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'
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user