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:
parent
8396df5ad9
commit
9e9c8df3f0
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue