/[pcsx2_0.9.7]/trunk/plugins/GSdx/GSSettingsDlg.cpp
ViewVC logotype

Diff of /trunk/plugins/GSdx/GSSettingsDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/plugins/GSdx/GSSettingsDlg.cpp	2010/12/23 11:48:33	279
+++ trunk/plugins/GSdx/GSSettingsDlg.cpp	2010/12/23 12:02:12	280
@@ -85,7 +85,9 @@
 
 		ComboBoxAppend(IDC_RESOLUTION, "Please select...", (LPARAM)&m_modes.back(), true);
 
-		if(CComPtr<IDirect3D9> d3d = Direct3DCreate9(D3D_SDK_VERSION))
+		CComPtr<IDirect3D9> d3d;
+		d3d.Attach(Direct3DCreate9(D3D_SDK_VERSION));
+		if(d3d)
 		{
 			uint32 w = theApp.GetConfig("ModeWidth", 0);
 			uint32 h = theApp.GetConfig("ModeHeight", 0);

 

  ViewVC Help
Powered by ViewVC 1.1.22