Matteo Bruni : wined3d: Ignore WINED3DFMT_NULL rendertarget in D/S size checks.

Alexandre Julliard julliard at winehq.org
Thu Nov 26 16:31:00 CST 2020


Module: wine
Branch: master
Commit: 7b23056c0b90fee948b34702640101f051128beb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7b23056c0b90fee948b34702640101f051128beb

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Nov 25 18:11:26 2020 +0100

wined3d: Ignore WINED3DFMT_NULL rendertarget in D/S size checks.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/context_gl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/context_gl.c b/dlls/wined3d/context_gl.c
index 73d520e5709..1f9003ed16e 100644
--- a/dlls/wined3d/context_gl.c
+++ b/dlls/wined3d/context_gl.c
@@ -627,7 +627,8 @@ static struct fbo_entry *wined3d_context_gl_find_fbo_entry(struct wined3d_contex
     struct fbo_entry *entry;
 
     if (depth_stencil->resource && depth_stencil->resource->type != WINED3D_RTYPE_BUFFER
-            && render_targets[0].resource && render_targets[0].resource->type != WINED3D_RTYPE_BUFFER)
+            && render_targets[0].resource && render_targets[0].resource->type != WINED3D_RTYPE_BUFFER
+            && render_targets[0].resource->format->id != WINED3DFMT_NULL)
     {
         rt_texture = wined3d_texture_from_resource(render_targets[0].resource);
         rt_level = render_targets[0].sub_resource_idx % rt_texture->level_count;




More information about the wine-cvs mailing list