Skip to content
Snippets Groups Projects
Commit daa14ec5 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Rémi Denis-Courmont
Browse files

opengl: interop_sw: remove usage of api->is_gles

The API type is already available in the vlc_gl_t object.
parent 1235aa62
No related branches found
No related tags found
No related merge requests found
......@@ -410,8 +410,8 @@ interop_init:
interop->fmt_in.i_chroma = i_chroma;
/* OpenGL or OpenGL ES2 with GL_EXT_unpack_subimage ext */
priv->has_unpack_subimage =
!interop->api->is_gles || vlc_gl_HasExtension(interop->gl, "GL_EXT_unpack_subimage");
priv->has_unpack_subimage = interop->gl->api_type == VLC_OPENGL
|| vlc_gl_HasExtension(interop->gl, "GL_EXT_unpack_subimage");
if (allow_dr && priv->has_unpack_subimage)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment