drawd3d.c - Fixes performance issues with YIQ enabled and prescale_x/prescale_y changes no longer impacts colors. [Just Desserts, Robert Tuccitto]
This commit is contained in:
parent
9f82e526f0
commit
4dba2235a1
@ -2865,7 +2865,7 @@ bool d3d_render_target::init(d3d_info *d3d, d3d_base *d3dintf, int width, int he
|
|||||||
|
|
||||||
if (!bloom)
|
if (!bloom)
|
||||||
{
|
{
|
||||||
result = (*d3dintf->device.create_texture)(d3d->device, width * prescale_x, height * prescale_y, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &texture[3]);
|
result = (*d3dintf->device.create_texture)(d3d->device, width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &texture[3]);
|
||||||
if (result != D3D_OK)
|
if (result != D3D_OK)
|
||||||
return false;
|
return false;
|
||||||
(*d3dintf->texture.get_surface_level)(texture[3], 0, &target[3]);
|
(*d3dintf->texture.get_surface_level)(texture[3], 0, &target[3]);
|
||||||
|
Loading…
Reference in New Issue
Block a user