[PATCH 3/8] wined3d: Do not call context_validate_onscreen_formats() in context_apply_blit_state().

Józef Kucia jkucia at codeweavers.com
Wed Feb 28 05:12:34 CST 2018


It does nothing when depth_stencil is NULL.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/wined3d/context.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 32126b7dc078..4282cfb94d01 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2956,8 +2956,6 @@ void context_apply_blit_state(struct wined3d_context *context, const struct wine
 
     if (wined3d_settings.offscreen_rendering_mode == ORM_FBO)
     {
-        context_validate_onscreen_formats(context, NULL);
-
         if (context->render_offscreen)
         {
             wined3d_texture_load(rt, context, FALSE);
-- 
2.16.1




More information about the wine-devel mailing list