[D3D 30] Prevent crash on games wanting to use compressed textures

Lionel Ulmer lionel.ulmer at free.fr
Sat Dec 21 06:12:25 CST 2002


Changelog:
 Report that we do not support compressed texture yet

-- 
		 Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
--- ../wine_base/dlls/ddraw/ddraw/main.c	Sun Dec 15 23:21:54 2002
+++ dlls/ddraw/ddraw/main.c	Sat Dec 21 13:08:20 2002
@@ -341,6 +341,12 @@
 	ddsd.u4.ddpfPixelFormat = This->pixelformat;
     }
 
+    /* We do not support for now compressed texture formats... */
+    if (ddsd.u4.ddpfPixelFormat.dwFlags & DDPF_FOURCC)
+    {
+        return DDERR_INVALIDPIXELFORMAT;
+    }
+    
     if (!(ddsd.dwFlags & DDSD_PITCH))
     {
 	ddsd.u1.lPitch = DDRAW_width_bpp_to_pitch(ddsd.dwWidth,


More information about the wine-patches mailing list