Skip to content

Commit

Permalink
Addition for the last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
intorr committed Feb 15, 2018
1 parent 5aa0dde commit dc9517f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
18 changes: 0 additions & 18 deletions src/Layers/xrRenderDX10/dx10HW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,6 @@ void CHW::CreateDevice(HWND m_hWnd, bool move_window)

m_DriverType = Caps.bForceGPU_REF ? D3D_DRIVER_TYPE_REFERENCE : D3D_DRIVER_TYPE_HARDWARE;

// For DirectX 10 adapter is already created in create D3D.
/*
//. #ifdef DEBUG
// Look for 'NVIDIA NVPerfHUD' adapter
// If it is present, override default settings
for (UINT Adapter=0;Adapter<pD3D->GetAdapterCount();Adapter++) {
D3DADAPTER_IDENTIFIER9 Identifier;
HRESULT Res=pD3D->GetAdapterIdentifier(Adapter,0,&Identifier);
if (SUCCEEDED(Res) && (xr_strcmp(Identifier.Description,"NVIDIA PerfHUD")==0))
{
DevAdapter =Adapter;
DevT =D3DDEVTYPE_REF;
break;
}
}
//. #endif
*/

// Display the name of video board
DXGI_ADAPTER_DESC Desc;
R_CHK(m_pAdapter->GetDesc(&Desc));
Expand Down
4 changes: 1 addition & 3 deletions src/Layers/xrRenderPC_R3/r3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,9 +1526,7 @@ HRESULT CRender::shader_compile(LPCSTR name, DWORD const* pSrcData, UINT SrcData
includer Includer;
LPD3DBLOB pShaderBuf = NULL;
LPD3DBLOB pErrorBuf = NULL;
_result = D3DCompile(pSrcData, SrcDataLen,
"", // NULL, //LPCSTR pFileName, // NVPerfHUD bug workaround.
defines, &Includer, pFunctionName, pTarget, Flags, 0, &pShaderBuf, &pErrorBuf);
_result = D3DCompile(pSrcData, SrcDataLen, "", defines, &Includer, pFunctionName, pTarget, Flags, 0, &pShaderBuf, &pErrorBuf);

if (SUCCEEDED(_result))
{
Expand Down
4 changes: 1 addition & 3 deletions src/Layers/xrRenderPC_R4/r4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1615,9 +1615,7 @@ HRESULT CRender::shader_compile(LPCSTR name, DWORD const* pSrcData, UINT SrcData
includer Includer;
LPD3DBLOB pShaderBuf = NULL;
LPD3DBLOB pErrorBuf = NULL;
_result = D3DCompile(pSrcData, SrcDataLen,
"", // NULL, //LPCSTR pFileName, // NVPerfHUD bug workaround.
defines, &Includer, pFunctionName, pTarget, Flags, 0, &pShaderBuf, &pErrorBuf);
_result = D3DCompile(pSrcData, SrcDataLen, "", defines, &Includer, pFunctionName, pTarget, Flags, 0, &pShaderBuf, &pErrorBuf);

if (SUCCEEDED(_result))
{
Expand Down

0 comments on commit dc9517f

Please sign in to comment.