mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[host] windows: fix compilation under gcc
This commit is contained in:
@@ -15,6 +15,7 @@ add_library(capture_DXGI STATIC
|
||||
|
||||
target_link_libraries(capture_DXGI
|
||||
lg_common
|
||||
platform_Windows
|
||||
d3d11
|
||||
dxgi
|
||||
dwmapi
|
||||
|
@@ -95,6 +95,12 @@ typedef HRESULT (*D3D12GetDebugInterface_t)(
|
||||
void **ppvDebug
|
||||
);
|
||||
|
||||
static D3D12_HEAP_DESC _ID3D12Heap_GetDesc(ID3D12Heap* This)
|
||||
{
|
||||
D3D12_HEAP_DESC __ret;
|
||||
return *This->lpVtbl->GetDesc(This, &__ret);
|
||||
}
|
||||
|
||||
static void d3d12_free(void);
|
||||
|
||||
static bool d3d12_create(
|
||||
@@ -189,7 +195,7 @@ static bool d3d12_create(
|
||||
return false;
|
||||
}
|
||||
|
||||
D3D12_HEAP_DESC heapDesc = ID3D12Heap_GetDesc(*heap);
|
||||
D3D12_HEAP_DESC heapDesc = _ID3D12Heap_GetDesc(*heap);
|
||||
DEBUG_INFO("ID3D12Heap : Size:%I64u Alignment:%I64u",
|
||||
heapDesc.SizeInBytes, heapDesc.Alignment);
|
||||
*alignSize = heapDesc.Alignment;
|
||||
|
Reference in New Issue
Block a user