[PATCH 1/2] wined3d: Correctly restore texture max level in shader_resource_view_generate_mipmaps().