Józef Kucia : wined3d: Remove outdated comment in CheckRenderTargetCapability().
Module: wine Branch: master Commit: f20bdd8deed0e43a40db4f95096f1cc6f3f89af3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f20bdd8deed0e43a40db4f9509... Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Fri May 26 10:48:06 2017 +0200 wined3d: Remove outdated comment in CheckRenderTargetCapability(). The WINED3DFMT_FLAG_RENDERTARGET flag is cleared in init_format_fbo_compat_info(). Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/directx.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 6b5ef8a..e6cefbd 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -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; }
participants (1)
-
Alexandre Julliard