diff options
author | Christian König <[email protected]> | 2016-01-20 16:19:08 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2016-03-08 13:00:04 +0100 |
commit | 37402aa4c6216eec5f60ebef8a8f24fcbd61f646 (patch) | |
tree | 1b9445279ac570b084ae9c932a56553e65a66ab5 /src/mesa/state_tracker/st_extensions.c | |
parent | e148a3b6e9e5c5cd941b70edb67e82058a8187a5 (diff) |
st/mesa: conditionally enable GL_NV_vdpau_interop
Only enable it when we compile the state tracker as well.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 063daaec688..42d347c6600 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1067,12 +1067,14 @@ void st_init_extensions(struct pipe_screen *screen, extensions->ARB_ES3_compatibility = GL_TRUE; } +#ifdef HAVE_ST_VDPAU if (screen->get_video_param && screen->get_video_param(screen, PIPE_VIDEO_PROFILE_UNKNOWN, PIPE_VIDEO_ENTRYPOINT_BITSTREAM, PIPE_VIDEO_CAP_SUPPORTS_INTERLACED)) { extensions->NV_vdpau_interop = GL_TRUE; } +#endif if (screen->get_shader_param(screen, PIPE_SHADER_VERTEX, PIPE_SHADER_CAP_DOUBLES) && |