diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index ad8b58b2..f7ff2f36 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -115,7 +115,7 @@ namespace bgfx D3D11_CULL_BACK, }; - static DXGI_FORMAT s_colorFormat[] = + /*static DXGI_FORMAT s_colorFormat[] = { DXGI_FORMAT_UNKNOWN, // ignored DXGI_FORMAT_R8G8B8A8_UNORM, @@ -124,7 +124,7 @@ namespace bgfx DXGI_FORMAT_R16G16B16A16_FLOAT, DXGI_FORMAT_R16_FLOAT, DXGI_FORMAT_R32_FLOAT, - }; + };*/ static const DXGI_FORMAT s_depthFormat[] = { @@ -578,7 +578,7 @@ namespace bgfx if (BX_ENABLED(BGFX_CONFIG_DEBUG) ) { ID3D11InfoQueue* infoQueue; - hr = m_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void**)&infoQueue); + hr = m_device->QueryInterface(IID_ID3D11InfoQueue, (void**)&infoQueue); if (SUCCEEDED(hr) ) { @@ -2105,6 +2105,7 @@ namespace bgfx , regIndex , regCount ); + BX_UNUSED(kind); } m_constantBuffer->finish(); @@ -2767,7 +2768,7 @@ namespace bgfx commitShaderConstants(); } } - + BX_UNUSED(programChanged); ID3D11UnorderedAccessView* uav[BGFX_MAX_COMPUTE_BINDINGS] = {}; ID3D11ShaderResourceView* srv[BGFX_MAX_COMPUTE_BINDINGS] = {}; ID3D11SamplerState* sampler[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS] = {}; diff --git a/src/renderer_d3d11.h b/src/renderer_d3d11.h index 9d198b09..85748d0f 100644 --- a/src/renderer_d3d11.h +++ b/src/renderer_d3d11.h @@ -44,7 +44,7 @@ namespace bgfx Ty* find(uint64_t _id) { - HashMap::iterator it = m_hashMap.find(_id); + typename HashMap::iterator it = m_hashMap.find(_id); if (it != m_hashMap.end() ) { return it->second; @@ -55,7 +55,7 @@ namespace bgfx void invalidate(uint64_t _id) { - HashMap::iterator it = m_hashMap.find(_id); + typename HashMap::iterator it = m_hashMap.find(_id); if (it != m_hashMap.end() ) { DX_RELEASE_WARNONLY(it->second, 0); @@ -65,7 +65,7 @@ namespace bgfx void invalidate() { - for (HashMap::iterator it = m_hashMap.begin(), itEnd = m_hashMap.end(); it != itEnd; ++it) + for (typename HashMap::iterator it = m_hashMap.begin(), itEnd = m_hashMap.end(); it != itEnd; ++it) { DX_CHECK_REFCOUNT(it->second, 1); it->second->Release();