All pastes #1357989 Raw Edit

Untitled

public text v1 · immutable
#1357989 ·published 2009-03-11 05:28 UTC
rendered paste body
Index: plugins/GSdx/GSTexture9.cpp
===================================================================
--- plugins/GSdx/GSTexture9.cpp	(revision 741)
+++ plugins/GSdx/GSTexture9.cpp	(working copy)
@@ -176,11 +176,11 @@
 		m_surface->UnlockRect();
 		surface->UnlockRect();
 
-		res = surface;
+		res = CComPtr<IDirect3DResource9>(surface);
 	}
 	else
 	{
-		res = m_surface;
+		res = CComPtr<IDirect3DResource9>(m_surface);
 	}
 
 	if(CComQIPtr<IDirect3DSurface9> surface = res)