From 48697346c06011938ba04576cca45a5ae58d3227 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 22 Aug 2018 00:32:59 +0100 Subject: [PATCH] [d3d10] Implement Get/SetTextFilterSize using the behaviour D3D10 exhibits (#587) --- src/d3d10/d3d10_device.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/d3d10/d3d10_device.cpp b/src/d3d10/d3d10_device.cpp index aff15f5f..0a14fc80 100644 --- a/src/d3d10/d3d10_device.cpp +++ b/src/d3d10/d3d10_device.cpp @@ -1568,14 +1568,19 @@ namespace dxvk { void STDMETHODCALLTYPE D3D10Device::SetTextFilterSize( UINT Width, UINT Height) { - Logger::err("D3D10Device::SetTextFilterSize: Not implemented"); + // D3D10 doesn't seem to actually store or do anything with these values, + // as when calling GetTextFilterSize, it just makes the values 0. } void STDMETHODCALLTYPE D3D10Device::GetTextFilterSize( UINT* pWidth, UINT* pHeight) { - Logger::err("D3D10Device::GetTextFilterSize: Not implemented"); + if (pWidth) + *pWidth = 0; + + if (pHeight) + *pHeight = 0; } -} \ No newline at end of file +}