All pastes #1846872 Raw Edit

Miscellany

public diff v1 · immutable
#1846872 ·published 2010-03-20 18:24 UTC
rendered paste body
Index: plugins/GSdx/GSDevice11.cpp===================================================================--- plugins/GSdx/GSDevice11.cpp	(revision 2754)+++ plugins/GSdx/GSDevice11.cpp	(working copy)@@ -93,9 +93,11 @@  	D3D_FEATURE_LEVEL level; -	hr = D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, flags, levels, countof(levels), D3D11_SDK_VERSION, &scd, &m_swapchain, &m_dev, &level, &m_ctx);+	hr = D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, flags, levels, countof(levels), D3D11_SDK_VERSION, &scd, &m_swapchain, &m_dev, &level, NULL); 	// hr = D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_REFERENCE, NULL, flags, NULL, 0, D3D11_SDK_VERSION, &scd, &m_swapchain, &m_dev, &level, &m_ctx);+	if(FAILED(hr)) return false; +	m_dev->CreateDeferredContext(0, &m_ctx); 	if(FAILED(hr)) return false;  	if(!SetFeatureLevel(level, true))@@ -320,6 +322,7 @@  void GSDevice11::Flip() {+	m_ctx->Flush(); 	m_swapchain->Present(m_vsync, 0); }