Matteo Bruni : d3dx9: Print a FIXME when encountering an unknown surface format.

Alexandre Julliard julliard at winehq.org
Tue Apr 26 11:35:46 CDT 2011


Module: wine
Branch: master
Commit: b17fd2a3afe6f7ebaed7c5311fcf1b7e1f84dbfd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b17fd2a3afe6f7ebaed7c5311fcf1b7e1f84dbfd

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Mon Jan 24 21:52:01 2011 +0100

d3dx9: Print a FIXME when encountering an unknown surface format.

---

 dlls/d3dx9_36/util.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/d3dx9_36/util.c b/dlls/d3dx9_36/util.c
index f7f3cf1..ddb54c3 100644
--- a/dlls/d3dx9_36/util.c
+++ b/dlls/d3dx9_36/util.c
@@ -151,6 +151,8 @@ const PixelFormatDesc *get_format_info(D3DFORMAT format)
 {
     unsigned int i = 0;
     while(formats[i].format != format && formats[i].format != D3DFMT_UNKNOWN) i++;
+    if(formats[i].format == D3DFMT_UNKNOWN)
+        FIXME("Unknown format %#x\n", format);
     return &formats[i];
 }
 




More information about the wine-cvs mailing list