Quick fix for the Pixel Lighting setting to appear in the DX9 backend.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7168 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
sl1nk3.s 2011-02-13 23:44:55 +00:00
parent b776ac3d6f
commit 2c00384427
2 changed files with 6 additions and 1 deletions

View File

@ -134,7 +134,12 @@ HRESULT Init()
--d3d_dll_ref; --d3d_dll_ref;
return E_FAIL; return E_FAIL;
} }
// Init the caps structure using data from the currently selected device
int adapter = g_Config.iAdapter;
D3D->GetDeviceCaps((adapter >= 0 && adapter < std::min(MAX_ADAPTERS, numAdapters)) ? adapter : D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &caps);
Enumerate(); Enumerate();
return S_OK; return S_OK;
} }

View File

@ -121,8 +121,8 @@ void InitBackendInfo()
void VideoBackend::ShowConfig(void* parent) void VideoBackend::ShowConfig(void* parent)
{ {
#if defined(HAVE_WX) && HAVE_WX #if defined(HAVE_WX) && HAVE_WX
InitBackendInfo();
DX9::D3D::Init(); DX9::D3D::Init();
InitBackendInfo();
// adapters // adapters
g_Config.backend_info.Adapters.clear(); g_Config.backend_info.Adapters.clear();