mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 15:33:38 +00:00
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
This commit is contained in:
parent
93a2556fae
commit
41581e8de8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue