wined3d: Do not try to attach WINED3FMT_NULL surfaces to FBO.

This fixes a regression introduced by commit
b76fcbe0da.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2016-06-06 12:19:32 +02:00 committed by Alexandre Julliard
parent 589b70df54
commit 9cc95e5a1d
1 changed files with 1 additions and 1 deletions

View File

@ -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;