Commit 9cc95e5a authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

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

This fixes a regression introduced by commit b76fcbe0. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 589b70df
...@@ -378,7 +378,7 @@ static inline void context_set_fbo_key_for_surface(const struct wined3d_context ...@@ -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, struct wined3d_fbo_entry_key *key, UINT idx, struct wined3d_surface *surface,
DWORD location) DWORD location)
{ {
if (!surface) if (!surface || surface->container->resource.format->id == WINED3DFMT_NULL)
{ {
key->objects[idx].object = 0; key->objects[idx].object = 0;
key->objects[idx].target = 0; key->objects[idx].target = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment