summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/drawd3d.c
diff options
context:
space:
mode:
author Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-31 15:58:49 +0000
committer Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-31 15:58:49 +0000
commit130b3fcabb9e735d1d61af5579dfc8072cc743fa (patch)
treeb775d49ddad0f160b58b04124cdbc3ee67f8d615 /src/osd/windows/drawd3d.c
parent61eda625cbd1475063c428975e9672c3db43e245 (diff)
Keep HLSL prescaling from blowing out VRAM when regular prescaling is enabled.
Diffstat (limited to 'src/osd/windows/drawd3d.c')
-rw-r--r--src/osd/windows/drawd3d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/windows/drawd3d.c b/src/osd/windows/drawd3d.c
index 9ea51eb1484..87ea817ec62 100644
--- a/src/osd/windows/drawd3d.c
+++ b/src/osd/windows/drawd3d.c
@@ -4072,8 +4072,8 @@ static texture_info *texture_create(d3d_info *d3d, const render_texinfo *texsour
// Find the nearest prescale factor that is over our screen size
int hlsl_prescale = 1;
- while(texture->rawwidth * hlsl_prescale < d3d->width) hlsl_prescale++;
- while(texture->rawheight * hlsl_prescale < d3d->height) hlsl_prescale++;
+ while(scwidth * hlsl_prescale < d3d->width) hlsl_prescale++;
+ while(scheight * hlsl_prescale < d3d->height) hlsl_prescale++;
d3d->hlsl_prescale_size = hlsl_prescale;
result = (*d3dintf->device.create_texture)(d3d->device, scwidth * hlsl_prescale, scheight * hlsl_prescale, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &d3d->hlsltexture0[idx]);