- fixed softpoly backend unconditionally applying linear scaling

This commit is contained in:
Rachael Alexanderson 2019-12-31 08:59:38 -05:00
parent 8be7ef0ec5
commit eaee3d6ac5
1 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,8 @@
EXTERN_CVAR(Bool, vid_vsync)
bool ViewportLinearScale();
extern HWND Window;
#include <d3d9.h>
@ -168,7 +170,10 @@ void I_PolyPresentUnlock(int x, int y, int width, int height)
dstrect.top = y;
dstrect.right = x + width;
dstrect.bottom = y + height;
device->StretchRect(surface, &srcrect, backbuffer, &dstrect, D3DTEXF_LINEAR);
if (ViewportLinearScale())
device->StretchRect(surface, &srcrect, backbuffer, &dstrect, D3DTEXF_LINEAR);
else
device->StretchRect(surface, &srcrect, backbuffer, &dstrect, D3DTEXF_POINT);
result = device->EndScene();
if (SUCCEEDED(result))