build: move check for DXGI_DEBUG_D3D11 down

video/out/gpu/d3d11_helpers.c requires it as well, and it's possible to
have egl-angle-win32 enabled without d3d11.

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
This commit is contained in:
Christopher Degawa authored and Kacper Michajłow committed 2025-05-09 12:47:44 +02:00
1 parent 95c882dddc
commit b3070d1255
1 file changed
+1 -1
+1 -1
View File
@@ -1005,7 +1005,6 @@ features += {'d3d11': d3d11.allowed()}
if features['d3d11']
sources += files('video/out/d3d11/context.c',
'video/out/d3d11/ra_d3d11.c')
features += {'dxgi-debug-d3d11': cc.has_header_symbol('d3d11sdklayers.h', 'DXGI_DEBUG_D3D11')}
endif
wayland = {
@@ -1200,6 +1199,7 @@ endif
if features['d3d11'] or features['egl-angle-win32']
sources += files('video/out/gpu/d3d11_helpers.c')
features += {'dxgi-debug-d3d11': cc.has_header_symbol('d3d11sdklayers.h', 'DXGI_DEBUG_D3D11')}
endif
egl = dependency('egl', version: '>= 1.4.0', required: get_option('egl'))