d3d12: Include windows.h on Windows before dxgicommon.h

The dxgicommon.h header uses UINT types without including windows.h itself.

Fixes: 6dbe05ff ("d3d12: Add util video functions to d3d12_format")
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16588>
This commit is contained in:
Jesse Natalie 2022-05-18 09:12:39 -07:00
parent 8396df5ad9
commit 9e9c8df3f0
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@
#define D3D12_FORMATS_H
#include <directx/dxgiformat.h>
#ifndef _WIN32
#ifdef _WIN32
#include <Windows.h>
#else
#include <wsl/winadapter.h>
#endif
#include <directx/dxgicommon.h>