mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
[vendor:directx/dxgi] Removed GetDebugInterface
Since Windows 8.1 `DXGIGetDebugInterface1` is present, which eliminates the need for `GetDebugInterface`. Odin does not support Windows versions that Microsoft doesn't support, so anything Windows 7 and earlier is basically useless anyway.
This commit is contained in:
Vendored
-21
@@ -139,24 +139,3 @@ IDebug1_VTable :: struct {
|
|||||||
DisableLeakTrackingForThread: proc "stdcall" (this: ^IDebug1),
|
DisableLeakTrackingForThread: proc "stdcall" (this: ^IDebug1),
|
||||||
IsLeakTrackingEnabledForThread: proc "stdcall" (this: ^IDebug1) -> BOOL,
|
IsLeakTrackingEnabledForThread: proc "stdcall" (this: ^IDebug1) -> BOOL,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GET_DEBUG_INTERFACE_PROC :: #type proc "stdcall" (riid: ^IID, ppDebug: ^rawptr) -> HRESULT
|
|
||||||
|
|
||||||
GetDebugInterface: GET_DEBUG_INTERFACE_PROC
|
|
||||||
|
|
||||||
// Helper function to initialize GetDebugInterface
|
|
||||||
InitDebugInterface :: proc() -> bool {
|
|
||||||
debug_lib := win32.LoadLibraryW(win32.L("dxgidebug.dll"))
|
|
||||||
if debug_lib == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
ptr := win32.GetProcAddress(debug_lib, "DXGIGetDebugInterface")
|
|
||||||
if ptr == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
GetDebugInterface = cast(GET_DEBUG_INTERFACE_PROC)ptr
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user