Skip to content
Snippets Groups Projects
Commit 1e3833ae authored by Romain Vimont's avatar Romain Vimont
Browse files

opengl: reference interop from sampler

This allows to use an interop instance without a renderer.
parent 81ccbfbb
No related branches found
No related tags found
No related merge requests found
......@@ -441,6 +441,8 @@ vlc_gl_renderer_New(vlc_gl_t *gl, const struct vlc_gl_api *api,
if (!sampler)
return NULL;
sampler->interop = interop;
struct vlc_gl_renderer *renderer = calloc(1, sizeof(*renderer));
if (!renderer)
{
......
......@@ -85,6 +85,8 @@ struct vlc_gl_sampler {
unsigned int i_visible_width;
unsigned int i_visible_height;
} last_source;
struct vlc_gl_interop *interop;
};
#endif
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