wined3d/d3d9: Pitch for DXTn textures can not be 0. With tests.
Vitaliy Margolen
wine-patches at kievinfo.com
Sat Dec 2 21:27:36 CST 2006
Returning 0 pitch caused broken textures and crash in few programs I'm debugging.
It can be also a reason for "white" or "corrupted" textures for high MIP levels.
---
dlls/d3d9/tests/surface.c | 30 ++++++++++++++++++++++++++++++
dlls/wined3d/surface.c | 4 ++--
2 files changed, 32 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a2cbab82dfbc807fca9a635e763ff508e12700ff.diff
Type: text/x-patch
Size: 3182 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061202/0f3282e9/a2cbab82dfbc807fca9a635e763ff508e12700ff.bin
More information about the wine-patches
mailing list