Initialize the supports partial update flag to false
With 870679e46f
, if the partial update
extension is unsupported, setSupportsPartialUpdate() won't be called.
The problem is that it may leave OpenGLBackend::supportsPartialUpdate()
uninitialized, which can lead to a crash if an OpenGL render backend
tries to call eglSetDamageRegionKHR() and EGL_KHR_partial_update is
unsupported.
This commit is contained in:
parent
f037a69f1c
commit
59bf2a52ed
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ private:
|
|||
/**
|
||||
* @brief Whether the backend supports EGL_KHR_partial_update
|
||||
*/
|
||||
bool m_havePartialUpdate;
|
||||
bool m_havePartialUpdate = false;
|
||||
bool m_haveSwapBuffersWithDamage = false;
|
||||
/**
|
||||
* @brief Whether the backend supports EGL_KHR_surfaceless_context.
|
||||
|
|
Loading…
Reference in a new issue