mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-24 20:12:15 +00:00
BugFix: Now all functions with a IDirect3DSurface9 object passed object check for a uMod_IDirect3DSurface9 object before they call the original function.
other changes: %lu to %p for pointers
This commit is contained in:
@@ -70,7 +70,7 @@ ULONG APIENTRY uMod_IDirect3DTexture9::AddRef()
|
||||
//this function yields for the non switched texture object
|
||||
ULONG APIENTRY uMod_IDirect3DTexture9::Release()
|
||||
{
|
||||
Message("uMod_IDirect3DTexture9::Release(): %lu\n", this);
|
||||
Message("uMod_IDirect3DTexture9::Release(): %p\n", this);
|
||||
|
||||
void *cpy;
|
||||
long ret = m_D3Ddev->QueryInterface( IID_IDirect3DTexture9, &cpy);
|
||||
@@ -124,7 +124,7 @@ ULONG APIENTRY uMod_IDirect3DTexture9::Release()
|
||||
delete(this);
|
||||
}
|
||||
|
||||
Message("uMod_IDirect3DTexture9::Release() end: %lu\n", this);
|
||||
Message("uMod_IDirect3DTexture9::Release() end: %p\n", this);
|
||||
return (count);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user