mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 12:32:48 +00:00
Merge branch 'master' of https://code.google.com/p/dolphin-emu into dx9-ssaa-fix
This commit is contained in:
commit
ba6a67a5f1
@ -282,8 +282,8 @@ NetPlayDiag::NetPlayDiag(wxWindow* const parent, const CGameListCtrl* const game
|
|||||||
const std::string& game, const bool is_hosting)
|
const std::string& game, const bool is_hosting)
|
||||||
: wxFrame(parent, wxID_ANY, wxT(NETPLAY_TITLEBAR), wxDefaultPosition, wxDefaultSize)
|
: wxFrame(parent, wxID_ANY, wxT(NETPLAY_TITLEBAR), wxDefaultPosition, wxDefaultSize)
|
||||||
, m_selected_game(game)
|
, m_selected_game(game)
|
||||||
, m_game_list(game_list)
|
|
||||||
, m_start_btn(NULL)
|
, m_start_btn(NULL)
|
||||||
|
, m_game_list(game_list)
|
||||||
{
|
{
|
||||||
wxPanel* const panel = new wxPanel(this);
|
wxPanel* const panel = new wxPanel(this);
|
||||||
|
|
||||||
|
@ -333,12 +333,28 @@ HRESULT Create(HWND wnd)
|
|||||||
swap_chain_desc.BufferDesc.Width = xres;
|
swap_chain_desc.BufferDesc.Width = xres;
|
||||||
swap_chain_desc.BufferDesc.Height = yres;
|
swap_chain_desc.BufferDesc.Height = yres;
|
||||||
|
|
||||||
D3D11_CREATE_DEVICE_FLAG device_flags = D3D11_CREATE_DEVICE_SINGLETHREADED;
|
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||||
hr = PD3D11CreateDeviceAndSwapChain(adapter, D3D_DRIVER_TYPE_UNKNOWN, NULL, device_flags,
|
// Creating debug devices can sometimes fail if the user doesn't have the correct
|
||||||
supported_feature_levels, NUM_SUPPORTED_FEATURE_LEVELS,
|
// version of the DirectX SDK. If it does, simply fallback to a non-debug device.
|
||||||
D3D11_SDK_VERSION, &swap_chain_desc, &swapchain, &device,
|
{
|
||||||
&featlevel, &context);
|
hr = PD3D11CreateDeviceAndSwapChain(adapter, D3D_DRIVER_TYPE_UNKNOWN, NULL,
|
||||||
if (FAILED(hr) || !device || !context || !swapchain)
|
D3D11_CREATE_DEVICE_SINGLETHREADED | D3D11_CREATE_DEVICE_DEBUG,
|
||||||
|
supported_feature_levels, NUM_SUPPORTED_FEATURE_LEVELS,
|
||||||
|
D3D11_SDK_VERSION, &swap_chain_desc, &swapchain, &device,
|
||||||
|
&featlevel, &context);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(hr))
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
hr = PD3D11CreateDeviceAndSwapChain(adapter, D3D_DRIVER_TYPE_UNKNOWN, NULL,
|
||||||
|
D3D11_CREATE_DEVICE_SINGLETHREADED,
|
||||||
|
supported_feature_levels, NUM_SUPPORTED_FEATURE_LEVELS,
|
||||||
|
D3D11_SDK_VERSION, &swap_chain_desc, &swapchain, &device,
|
||||||
|
&featlevel, &context);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(hr))
|
||||||
{
|
{
|
||||||
MessageBox(wnd, _T("Failed to initialize Direct3D.\nMake sure your video card supports at least D3D 10.0"), _T("Dolphin Direct3D 11 backend"), MB_OK | MB_ICONERROR);
|
MessageBox(wnd, _T("Failed to initialize Direct3D.\nMake sure your video card supports at least D3D 10.0"), _T("Dolphin Direct3D 11 backend"), MB_OK | MB_ICONERROR);
|
||||||
SAFE_RELEASE(device);
|
SAFE_RELEASE(device);
|
||||||
|
@ -250,6 +250,8 @@ void VideoBackend::Video_Cleanup() {
|
|||||||
ProgramShaderCache::Shutdown();
|
ProgramShaderCache::Shutdown();
|
||||||
VertexShaderManager::Shutdown();
|
VertexShaderManager::Shutdown();
|
||||||
PixelShaderManager::Shutdown();
|
PixelShaderManager::Shutdown();
|
||||||
|
delete g_perf_query;
|
||||||
|
g_perf_query = NULL;
|
||||||
delete g_vertex_manager;
|
delete g_vertex_manager;
|
||||||
g_vertex_manager = NULL;
|
g_vertex_manager = NULL;
|
||||||
OpcodeDecoder_Shutdown();
|
OpcodeDecoder_Shutdown();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user