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:
parent
f58c80fd39
commit
3cf6dfd7e6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue