Some broken games do not put the TEXTURE flags in the surface caps.

This commit is contained in:
Lionel Ulmer 2003-07-15 20:45:01 +00:00 committed by Alexandre Julliard
parent cc0b7efead
commit 2f34e74ede
1 changed files with 5 additions and 1 deletions

View File

@ -203,7 +203,11 @@ Main_DirectDrawSurface_QueryInterface(LPDIRECTDRAWSURFACE7 iface, REFIID riid,
{
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) {