build: fix compilation conditions for vaapi interop inits

This makes the condition for including each init match the condition for
compiling the file that defines it.

It's possible to e.g. HAVE_GL and HAVE_VAAPI without HAVE_VAAPI_EGL,
which resulted in "undefined reference to `vaapi_gl_init'" with the old
code.
This commit is contained in:
Philip Sequeira 2019-11-08 22:39:42 -05:00 committed by Philip Langdale
parent 07fd511e14
commit 85aa9635e0
1 changed files with 2 additions and 2 deletions

View File

@ -108,10 +108,10 @@ static void uninit(struct ra_hwdec *hw)
}
const static vaapi_interop_init interop_inits[] = {
#if HAVE_GL
#if HAVE_VAAPI_EGL
vaapi_gl_init,
#endif
#if HAVE_VULKAN
#if HAVE_VAAPI_VULKAN
vaapi_vk_init,
#endif
NULL