Skip to content

Commit a59a9f5

Browse files
committed
backend/gl/egl: request GPU reset notifications
Inline with what the glx backend does. Signed-off-by: Yuxuan Shui <[email protected]>
1 parent a2f63f1 commit a59a9f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/gl/egl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ static backend_t *egl_init(session_t *ps, xcb_window_t target) {
193193
gd->ctx = eglCreateContext(
194194
gd->display, config, NULL,
195195
(EGLint[]){EGL_CONTEXT_MAJOR_VERSION, 3, EGL_CONTEXT_MINOR_VERSION, 3,
196-
EGL_CONTEXT_OPENGL_PROFILE_MASK,
197-
EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT, EGL_NONE});
196+
EGL_CONTEXT_OPENGL_PROFILE_MASK, EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT,
197+
EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY,
198+
EGL_LOSE_CONTEXT_ON_RESET, EGL_NONE});
198199
if (gd->ctx == EGL_NO_CONTEXT) {
199200
log_error("Failed to get EGL context: %#x", eglGetError());
200201
goto end;

0 commit comments

Comments
 (0)