From: Max Qian Subject: [PATCH again] wined3d: Don't accept WINED3DFMT_NULL Message-Id: mid:5 Date: Sun, 22 May 2016 00:48:33 -0500 This fixes https://bugs.winehq.org/show_bug.cgi?id=40624 Signed-off-by: Max Qian --- dlls/wined3d/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index e741969..6be1c86 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -378,7 +378,7 @@ static inline void context_set_fbo_key_for_surface(const struct wined3d_context struct wined3d_fbo_entry_key *key, UINT idx, struct wined3d_surface *surface, DWORD location) { - if (!surface) + if (!surface || surface->container->resource.format->id == WINED3DFMT_NULL) { key->objects[idx].object = 0; key->objects[idx].target = 0; -- 2.8.2