From ac1e44f1207083fff3ac38ace48ced716769c357 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Mon, 8 Aug 2022 22:24:23 +0200 Subject: [PATCH] [d3d9] Fix typo --- src/d3d9/d3d9_common_texture.h | 2 +- src/d3d9/d3d9_device.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_common_texture.h b/src/d3d9/d3d9_common_texture.h index 7d15ca95..667d3f9d 100644 --- a/src/d3d9/d3d9_common_texture.h +++ b/src/d3d9/d3d9_common_texture.h @@ -331,7 +331,7 @@ namespace dxvk { void SetNeedsReadback(UINT Subresource, bool value) { m_needsReadback.set(Subresource, value); } - bool NeedsReachback(UINT Subresource) const { return m_needsReadback.get(Subresource); } + bool NeedsReadback(UINT Subresource) const { return m_needsReadback.get(Subresource); } void MarkAllNeedReadback() { m_needsReadback.setAll(); } diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 85c96faa..b078f660 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -4163,7 +4163,7 @@ namespace dxvk { // then we need to copy -> buffer // We are also always dirty if we are a render target, // a depth stencil, or auto generate mipmaps. - bool needsReadback = pResource->NeedsReachback(Subresource) || renderable; + bool needsReadback = pResource->NeedsReadback(Subresource) || renderable; pResource->SetNeedsReadback(Subresource, false); void* mapPtr;