mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
d3d12: Fixes compiling error in d3d12/wgl/d3d12_wgl_framebuffer.cpp with gcc
error message:
```
../../src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp:231:42: error: no matching function for call to 'operator new(sizetype, d3d12_wgl_framebuffer*&)'
231 | new (fb) struct d3d12_wgl_framebuffer();
| ^
<built-in>: note: candidate: 'void* operator new(long long unsigned int)'
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16084>
This commit is contained in:
parent
05097d1f6c
commit
7cb78a27d8
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,8 @@
|
|||
|
||||
#include "d3d12_wgl_public.h"
|
||||
|
||||
#include <new>
|
||||
|
||||
#include <windows.h>
|
||||
#include <dxgi1_4.h>
|
||||
#include <directx/d3d12.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue