Commit 41581e8d authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Do not use glFramebufferTexture() to bind array RTVs with an array size of one.

Despite the array size, these are considered to be "layered" for the purposes of GL_FRAMEBUFFER_ATTACHMENT_LAYERED, and mixing array and non-array textures in this way will trigger GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49002
parent 93a2556f
......@@ -507,7 +507,7 @@ static inline void wined3d_context_gl_set_fbo_key_for_render_target(const struct
key->objects[idx].object = render_target->gl_view.name;
key->objects[idx].target = render_target->gl_view.target;
key->objects[idx].level = 0;
key->objects[idx].layer = WINED3D_ALL_LAYERS;
key->objects[idx].layer = (render_target->layer_count == 1 ? 0 : WINED3D_ALL_LAYERS);
return;
}
......
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