mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
Revert "gl/eagl: try getting a gles3 context"
This reverts commit96b9666d59
. This reverts commitd11385d167
. This breaks the texture sharing with the applemedia elements as CVOpenGLESTextureCache seems to have an arbitrary restriction on GLES2 only.
This commit is contained in:
parent
87573ba66c
commit
eb14273631
1 changed files with 5 additions and 17 deletions
|
@ -219,29 +219,17 @@ gst_gl_context_eagl_create_context (GstGLContext * context, GstGLAPI gl_api,
|
|||
{
|
||||
GstGLContextEagl *context_eagl = GST_GL_CONTEXT_EAGL (context);
|
||||
GstGLContextEaglPrivate *priv = context_eagl->priv;
|
||||
EAGLSharegroup *share_group;
|
||||
|
||||
if (other_context) {
|
||||
EAGLContext *external_gl_context = (EAGLContext *)
|
||||
gst_gl_context_get_gl_context (other_context);
|
||||
share_group = [external_gl_context sharegroup];
|
||||
} else {
|
||||
share_group = nil;
|
||||
}
|
||||
EAGLSharegroup *share_group = [external_gl_context sharegroup];
|
||||
|
||||
priv->eagl_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3 sharegroup:share_group];
|
||||
if (!priv->eagl_context) {
|
||||
priv->eagl_context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES2 sharegroup:share_group];
|
||||
}
|
||||
if (!priv->eagl_context) {
|
||||
g_set_error_literal (error, GST_GL_CONTEXT_ERROR,
|
||||
GST_GL_CONTEXT_ERROR_CREATE_CONTEXT,
|
||||
"Failed to create OpenGL ES context");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (share_group)
|
||||
[share_group release];
|
||||
} else {
|
||||
priv->eagl_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
||||
}
|
||||
|
||||
priv->eagl_layer = NULL;
|
||||
priv->framebuffer = 0;
|
||||
|
|
Loading…
Reference in a new issue