From 3e29f952f953f66db5677a0be74bc75fd869bc68 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 22 May 2016 18:23:08 +0200 Subject: [PATCH] wined3d: NP2 emulation is not allowed on array textures. Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/surface.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 2f00e874987..5534e733047 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -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"); -- 2.11.4.GIT