From 7990566f6b35f27e45de34f466efe5662f968ddb Mon Sep 17 00:00:00 2001 From: ftphikari Date: Thu, 13 Jul 2023 17:16:32 +0300 Subject: [PATCH] Code review fixes --- vendor/directx/d3d_compiler/d3d_compiler.odin | 2 +- vendor/directx/dxgi/dxgidebug.odin | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/vendor/directx/d3d_compiler/d3d_compiler.odin b/vendor/directx/d3d_compiler/d3d_compiler.odin index e2469c569..90af520c2 100644 --- a/vendor/directx/d3d_compiler/d3d_compiler.odin +++ b/vendor/directx/d3d_compiler/d3d_compiler.odin @@ -150,7 +150,7 @@ ID3DInclude_VTable :: struct { } // Default file includer -D3DCOMPILE_STANDARD_FILE_INCLUDE :: cast(^ID3DInclude)uintptr(1) +D3DCOMPILE_STANDARD_FILE_INCLUDE :: (^ID3DInclude)(uintptr(1)) ID3D11Module :: struct #raw_union { diff --git a/vendor/directx/dxgi/dxgidebug.odin b/vendor/directx/dxgi/dxgidebug.odin index 636fd76d5..3e7619d50 100644 --- a/vendor/directx/dxgi/dxgidebug.odin +++ b/vendor/directx/dxgi/dxgidebug.odin @@ -141,7 +141,10 @@ IDebug1_VTable :: struct { } -GetDebugInterface: proc "stdcall" (riid: ^IID, ppDebug: ^rawptr) -> HRESULT +GET_DEBUG_INTERFACE_PROC :: #type proc "stdcall" (riid: ^IID, ppDebug: ^rawptr) -> HRESULT + +GetDebugInterface: GET_DEBUG_INTERFACE_PROC + // Call this to start using GetDebugInterface debug_interface_init :: proc() -> bool { debug_lib := win32.LoadLibraryW(win32.L("dxgidebug.dll")) @@ -154,6 +157,6 @@ debug_interface_init :: proc() -> bool { return false } - GetDebugInterface = auto_cast(ptr) + GetDebugInterface = cast(GET_DEBUG_INTERFACE_PROC)ptr return true }