diff options
author | Simon Ser <contact@emersion.fr> | 2022-01-12 18:56:08 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-15 15:50:19 +0000 |
commit | 261d6998fb7461fcdf6cf66a57863b8ed505a67c (patch) | |
tree | 77bd847376c8e48abf1489fb3228747418fa804f /include | |
parent | 31ea61b390a3295248458ab7e8388848fb6810d0 (diff) |
render/gles2: query glGetGraphicsResetStatusKHR
Call glGetGraphicsResetStatusKHR in wlr_renderer_begin to figure
out when a GPU reset occurs. Destroy the renderer when this
happens (the OpenGL context is defunct).
Diffstat (limited to 'include')
-rw-r--r-- | include/render/gles2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h index 6631d34c..ff39206c 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -57,6 +57,7 @@ struct wlr_gles2_renderer { PFNGLPOPDEBUGGROUPKHRPROC glPopDebugGroupKHR; PFNGLPUSHDEBUGGROUPKHRPROC glPushDebugGroupKHR; PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glEGLImageTargetRenderbufferStorageOES; + PFNGLGETGRAPHICSRESETSTATUSKHRPROC glGetGraphicsResetStatusKHR; } procs; struct { |