mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
wined3d: Call wined3d_check_pixel_format_color() also for adapter format.
In preparation for the next commit. Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5a5d18bda4
commit
7358bb01b6
1 changed files with 1 additions and 0 deletions
|
@ -1468,6 +1468,7 @@ static BOOL wined3d_check_render_target_format(const struct wined3d_adapter *ada
|
||||||
for (i = 0; i < adapter->cfg_count; ++i)
|
for (i = 0; i < adapter->cfg_count; ++i)
|
||||||
{
|
{
|
||||||
if (cfgs[i].windowDrawable
|
if (cfgs[i].windowDrawable
|
||||||
|
&& wined3d_check_pixel_format_color(&cfgs[i], adapter_format)
|
||||||
&& wined3d_check_pixel_format_color(&cfgs[i], rt_format))
|
&& wined3d_check_pixel_format_color(&cfgs[i], rt_format))
|
||||||
{
|
{
|
||||||
TRACE("Pixel format %d is compatible with format %s.\n",
|
TRACE("Pixel format %d is compatible with format %s.\n",
|
||||||
|
|
Loading…
Reference in a new issue