Commit f20bdd8d authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Remove outdated comment in CheckRenderTargetCapability().

The WINED3DFMT_FLAG_RENDERTARGET flag is cleared in init_format_fbo_compat_info(). Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fca7f78e
......@@ -5140,6 +5140,8 @@ static BOOL CheckRenderTargetCapability(const struct wined3d_adapter *adapter,
/* Filter out non-RT formats */
if (!(check_format->flags[gl_type] & WINED3DFMT_FLAG_RENDERTARGET))
return FALSE;
if (wined3d_settings.offscreen_rendering_mode == ORM_FBO)
return TRUE;
if (wined3d_settings.offscreen_rendering_mode == ORM_BACKBUFFER)
{
const struct wined3d_pixel_format *cfgs = adapter->cfgs;
......@@ -5169,12 +5171,6 @@ static BOOL CheckRenderTargetCapability(const struct wined3d_adapter *adapter,
}
}
}
else if(wined3d_settings.offscreen_rendering_mode == ORM_FBO)
{
/* For now return TRUE for FBOs until we have some proper checks.
* Note that this function will only be called when the format is around for texturing. */
return TRUE;
}
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment