錯誤而強退出....有人有這樣的情況嗎???
會出現 xpool.cpp 658 錯誤後當機,而被強退出錯誤訊息: PTexTure ->LockRect (0,&lockrc,null,0)
有人跟我一樣的情況的嗎?? 要如何解決啊,那位大大能幫一下的啊?? 找到了一篇文章好像是在解決這問題的,不過.........看不懂啊
http://www.gamedev.net/community/forums/topic.asp?topic_id=508563
---------- 這段好像就是修証後的 , 但完全不知怎麼用 ------------
I think I solved the issue:
Here is the updated code that did NOT CRASH!
HRESULT APIENTRY hkIDirect3DDevice9::SetTexture(DWORD Stage, IDirect3DBaseTexture9 *pTexture)
{
IDirect3DDevice9 *dev = NULL;
D3DLOCKED_RECT lockedRect;
D3DLOCKED_RECT* pLockedRect = &lockedRect;
if (pTexture != NULL && pTexture->GetType() == D3DRTYPE_TEXTURE)
{
((IDirect3DTexture*)pTexture)->LockRect(0, pLockedRect, NULL, D3DLOCK_NOOVERWRITE | D3DLOCK_READONLY);
}
if(dev == this)
return m_pD3Ddev->SetTexture(Stage, ((hkIDirect3DTexture9*)(pTexture))->m_D3Dtex);
}
Now, it seems I have access to the texture data!
高手出來吧
页:
[1]