[PATCH 1/2] wined3d: fix wrong level calculation implemented in 1.7.42

Sergey Isakov isakov-sl at bk.ru
Wed May 27 14:45:46 CDT 2015


Bug 38048.
It is closed by wrong fix 5af656ea85e22a00304f1904e91ccfee52a6ccc5
According to MSDN
https://msdn.microsoft.com/en-us/library/windows/desktop/bb205858(v=vs.85).aspx
“If the source texture has fewer levels than the destination, the method will fail.”
The method must fail
1. To prevent fail on undefined levels.
2. To inform caller that the call is wrong.
The correct patch attached.
Test will follow next commit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150527/53e100ac/attachment-0002.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_levels.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150527/53e100ac/attachment-0001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150527/53e100ac/attachment-0003.html>


More information about the wine-patches mailing list