mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-24 06:53:27 +00:00
[client] network: request ES 3.1 decoder context
This commit is contained in:
@@ -914,7 +914,8 @@ bool networkVideoDecoderAttach(NetworkVideoDecoder * decoder,
|
|||||||
decoder->shareContext = interop->egl.shareContext;
|
decoder->shareContext = interop->egl.shareContext;
|
||||||
const EGLint attributes[] =
|
const EGLint attributes[] =
|
||||||
{
|
{
|
||||||
EGL_CONTEXT_CLIENT_VERSION, 3,
|
EGL_CONTEXT_MAJOR_VERSION, 3,
|
||||||
|
EGL_CONTEXT_MINOR_VERSION, 1,
|
||||||
EGL_NONE,
|
EGL_NONE,
|
||||||
};
|
};
|
||||||
if (!eglBindAPI(EGL_OPENGL_ES_API))
|
if (!eglBindAPI(EGL_OPENGL_ES_API))
|
||||||
@@ -922,7 +923,11 @@ bool networkVideoDecoderAttach(NetworkVideoDecoder * decoder,
|
|||||||
decoder->context = eglCreateContext(decoder->display, decoder->eglConfig,
|
decoder->context = eglCreateContext(decoder->display, decoder->eglConfig,
|
||||||
decoder->shareContext, attributes);
|
decoder->shareContext, attributes);
|
||||||
if (decoder->context == EGL_NO_CONTEXT)
|
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;
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
struct NetworkVideoCurrent previous;
|
struct NetworkVideoCurrent previous;
|
||||||
if (!networkVideoMakeCurrent(decoder, &previous))
|
if (!networkVideoMakeCurrent(decoder, &previous))
|
||||||
|
|||||||
Reference in New Issue
Block a user