From 4c77fb57546e89da1e6f3bad3c582848de9f5c93 Mon Sep 17 00:00:00 2001 From: aap Date: Fri, 12 Feb 2021 00:04:15 +0100 Subject: [PATCH] fix d3d fb lock --- src/d3d/d3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d/d3d.cpp b/src/d3d/d3d.cpp index f14c317..e5c9aa8 100644 --- a/src/d3d/d3d.cpp +++ b/src/d3d/d3d.cpp @@ -602,7 +602,7 @@ rasterLock(Raster *raster, int32 level, int32 lockMode) tex->GetSurfaceLevel(level, &rt); D3DSURFACE_DESC desc; rt->GetDesc(&desc); - HRESULT res = d3ddevice->CreateOffscreenPlainSurface(desc.Width, desc.Height, desc.Format, D3DPOOL_SYSTEMMEM, &rt, nil); + HRESULT res = d3ddevice->CreateOffscreenPlainSurface(desc.Width, desc.Height, desc.Format, D3DPOOL_SYSTEMMEM, &surf, nil); if(res != D3D_OK) return nil; d3ddevice->GetRenderTargetData(rt, surf);