[PATCH 1/2] wined3d: fix wrong level calculation implemented in 1.7.42
Matteo Bruni
matteo.mystral at gmail.com
Mon Jun 1 13:33:51 CDT 2015
2015-05-27 21:45 GMT+02:00 Sergey Isakov <isakov-sl at bk.ru>:
> 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
As I already mentioned, MSDN is wrong in this case, like in many other
cases. UpdateTexture never returns failure when using hardware devices
on Windows.
More information about the wine-devel
mailing list