From f6c32c2c1ef6a3463f2b8a4035354a88bf302438 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 3 Oct 2026 10:32:27 +1000 Subject: [PATCH] [client] network: request ES 3.1 decoder context --- client/transports/Network/video/decoder_egl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/transports/Network/video/decoder_egl.c b/client/transports/Network/video/decoder_egl.c index cec39299..61dd2df6 100644 --- a/client/transports/Network/video/decoder_egl.c +++ b/client/transports/Network/video/decoder_egl.c @@ -914,7 +914,8 @@ bool networkVideoDecoderAttach(NetworkVideoDecoder * decoder, decoder->shareContext = interop->egl.shareContext; const EGLint attributes[] = { - EGL_CONTEXT_CLIENT_VERSION, 3, + EGL_CONTEXT_MAJOR_VERSION, 3, + EGL_CONTEXT_MINOR_VERSION, 1, EGL_NONE, }; if (!eglBindAPI(EGL_OPENGL_ES_API)) @@ -922,7 +923,11 @@ bool networkVideoDecoderAttach(NetworkVideoDecoder * decoder, decoder->context = eglCreateContext(decoder->display, decoder->eglConfig, decoder->shareContext, attributes); if (decoder->context == EGL_NO_CONTEXT) + { + DEBUG_ERROR("Failed to create the required OpenGL ES 3.1 network " + "video context (eglError: 0x%x)", eglGetError()); goto fail; + } struct NetworkVideoCurrent previous; if (!networkVideoMakeCurrent(decoder, &previous))