[PATCH v4 5/7] wined3d: Implement readback from 2D array textures using glGet[Compressed]TexImage().
Henri Verbeet
hverbeet at gmail.com
Fri Apr 22 07:17:02 CDT 2016
On 22 April 2016 at 11:18, Józef Kucia <jkucia at codeweavers.com> wrote:
> + if (surface->texture_target == GL_TEXTURE_2D_ARRAY)
> + {
> + /* We don't expect to ever need to emulate NP2 textures when we have EXT_texture_array. */
> + if (texture->flags & WINED3D_TEXTURE_COND_NP2_EMULATED)
> + {
> + FIXME("Cannot download surface %p, level %u, layer %u.\n",
> + surface, surface->texture_level, surface->texture_layer);
> + return;
> + }
Note that you can enforce that in texture_init(). It currently checks
for WINED3DUSAGE_LEGACY_CUBEMAP, but it would be easy to check the
layer count instead.
More information about the wine-devel
mailing list