Commit 3e29f952 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: NP2 emulation is not allowed on array textures.

parent aa666adf
......@@ -784,13 +784,9 @@ static void surface_download_data(struct wined3d_surface *surface, const struct
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. */
/* NP2 emulation is not allowed on array textures. */
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;
}
ERR("Array texture %p uses NP2 emulation.\n", texture);
WARN_(d3d_perf)("Downloading all miplevel layers to get the surface data for a single sub-resource.\n");
......
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