diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index a22d542d0..109477624 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -340,7 +340,6 @@ namespace bgfx }; static const GUID WKPDID_D3DDebugObjectName = { 0x429b8c22, 0x9188, 0x4b0c, { 0x87, 0x42, 0xac, 0xb0, 0xbf, 0x85, 0xc2, 0x00 } }; - static const GUID IID_ID3D11InfoQueue = { 0x6543dbb6, 0x1b48, 0x42f5, { 0xab, 0x82, 0xe9, 0x7e, 0xc7, 0x43, 0x26, 0xf6 } }; // MinGW doesn't have __uuid(ID3D11InfoQueue) defined. template static BX_NO_INLINE void setDebugObjectName(Ty* _interface, const char* _format, ...) @@ -568,7 +567,7 @@ namespace bgfx if (BX_ENABLED(BGFX_CONFIG_DEBUG) ) { ID3D11InfoQueue* infoQueue; - hr = m_device->QueryInterface(IID_ID3D11InfoQueue, (void**)&infoQueue); + hr = m_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void**)&infoQueue); if (SUCCEEDED(hr) ) {