From 261d6998fb7461fcdf6cf66a57863b8ed505a67c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 12 Jan 2022 18:56:08 +0100 Subject: 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). --- include/render/gles2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 { -- cgit v1.2.3