https://bugs.winehq.org/show_bug.cgi?id=38048
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Sergey Isakov from comment #5)
MSDN says that " If the destination texture has fewer levels than the source, only the matching levels are copied. If the source texture has fewer levels than the destination, the method will fail." https://msdn.microsoft.com/en-us/library/windows/desktop/bb205858(v=vs.85). aspx So src_level > dst_level is normal according to MSDN. The sources must be corrected as follow
level_count = wined3d_texture_get_level_count(dst_texture); if (wined3d_texture_get_level_count(src_texture) < level_count) { WARN("Source has fewer level counts then destination, returning
WINED3DERR_INVALIDCALL.\n"); return WINED3DERR_INVALIDCALL; }
If you want to propose a patch, first add some tests to show that it's correct; and next will be to actually produce a patch, not a snippet from some file.