[PATCH 5/6] wined3d: Remove outdated comment in CheckRenderTargetCapability().

Józef Kucia jkucia at codeweavers.com
Fri May 26 03:48:06 CDT 2017


The WINED3DFMT_FLAG_RENDERTARGET flag is cleared in
init_format_fbo_compat_info().

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 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;
 }
 
-- 
2.10.2




More information about the wine-patches mailing list