Module: wine
Branch: master
Commit: 254349fb4d3cc9a501793feae7cf4fa785d87b4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=254349fb4d3cc9a501793feae…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Wed Sep 24 08:58:12 2008 +0200
wined3d: Remove the "Wine 1.0 safety path".
---
dlls/wined3d/surface.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index bba2050..4c6acc3 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -632,16 +632,6 @@ void WINAPI IWineD3DSurfaceImpl_SetGlTextureDesc(IWineD3DSurface *iface, UINT te
TRACE("(%p) : setting textureName %u, target %#x\n", This, textureName, target);
if (This->glDescription.textureName == 0 && textureName != 0) {
IWineD3DSurface_ModifyLocation(iface, SFLAG_INTEXTURE, FALSE);
- if((This->Flags & SFLAG_LOCATIONS) == 0) {
- /* In 1.0-rc4 and earlier, AddDirtyRect was called in the place of this if condition.
- * This had the problem that a correctly set INDRAWABLE flag was removed if the PreLoad
- * during the offscreen rendering readback triggered the creation of the GL texture.
- * The change intended to keep the INDRAWABLE intact. To prevent unintended side effects
- * before release, set the INSYSMEM flag like the old AddDirtyRect did.
- */
- WARN("Wine 1.0 safety path hit\n");
- This->Flags |= SFLAG_INSYSMEM;
- }
}
if(target == GL_TEXTURE_RECTANGLE_ARB && This->glDescription.target != target) {
This->Flags &= ~SFLAG_NORMCOORD;
Module: wine
Branch: master
Commit: ab3bf16e1dc0c53153aef5fcaa0dfb92a11522e2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab3bf16e1dc0c53153aef5fca…
Author: Christian Costa <titan.costa(a)wanadoo.fr>
Date: Tue Sep 23 23:25:48 2008 +0200
d3dxof: Do not print an error for interfaces that can be queried to retrieve the type of the object.
---
dlls/d3dxof/d3dxof.c | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c
index d5a1569..706662d 100644
--- a/dlls/d3dxof/d3dxof.c
+++ b/dlls/d3dxof/d3dxof.c
@@ -1177,7 +1177,11 @@ static HRESULT WINAPI IDirectXFileBinaryImpl_QueryInterface(IDirectXFileBinary*
return S_OK;
}
- ERR("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppvObject);
+ /* Do not print an error for interfaces that can be queried to retrieve the type of the object */
+ if (!IsEqualGUID(riid, &IID_IDirectXFileData)
+ && !IsEqualGUID(riid, &IID_IDirectXFileDataReference))
+ ERR("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppvObject);
+
return E_NOINTERFACE;
}
@@ -1296,7 +1300,11 @@ static HRESULT WINAPI IDirectXFileDataImpl_QueryInterface(IDirectXFileData* ifac
return S_OK;
}
- ERR("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppvObject);
+ /* Do not print an error for interfaces that can be queried to retreive the type of the object */
+ if (!IsEqualGUID(riid, &IID_IDirectXFileBinary)
+ && !IsEqualGUID(riid, &IID_IDirectXFileDataReference))
+ ERR("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppvObject);
+
return E_NOINTERFACE;
}
@@ -1488,7 +1496,11 @@ static HRESULT WINAPI IDirectXFileDataReferenceImpl_QueryInterface(IDirectXFileD
return S_OK;
}
- ERR("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppvObject);
+ /* Do not print an error for interfaces that can be queried to retreive the type of the object */
+ if (!IsEqualGUID(riid, &IID_IDirectXFileData)
+ && !IsEqualGUID(riid, &IID_IDirectXFileBinary))
+ ERR("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppvObject);
+
return E_NOINTERFACE;
}