[D3D] Fix some broken games...
Lionel Ulmer
lionel.ulmer at free.fr
Sat Jul 12 16:16:09 CDT 2003
Changelog:
- some broken games do not put the TEXTURE flags in the surface caps (and I
check in real Windows, it really works like that :-) )
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
--- dlls/ddraw_CVS/dsurface/main.c Sat Jul 5 14:24:44 2003
+++ dlls/ddraw/dsurface/main.c Sat Jul 12 23:12:05 2003
@@ -203,7 +203,11 @@
{
HRESULT ret_value = S_OK;
- if ((This->surface_desc.ddsCaps.dwCaps & DDSCAPS_TEXTURE) == 0) return E_NOINTERFACE;
+ /* Note: this is not exactly how Windows does it... But this seems not to hurt the only
+ application I know creating a texture without this flag set and it will prevent
+ bugs in other parts of Wine.
+ */
+ This->surface_desc.ddsCaps.dwCaps |= DDSCAPS_TEXTURE;
/* In case the texture surface was created before the D3D creation */
if (This->tex_private == NULL) {
More information about the wine-patches
mailing list