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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
 Report that we do not support compressed texture yet

-- 
		 Lionel Ulmer - http://www.bbrox.org/
--- ../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,

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux