[Bug 38048] Unigine Heaven 4.0 Benchmark Basic renders lots of black textures

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Apr 25 06:47:00 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=38048

--- Comment #6 from Nikolay Sivov <bunglehead at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list