d3d8/tests: Avoid a crash, when CreateTexture failed

Henri Verbeet hverbeet at gmail.com
Fri Nov 6 02:26:44 CST 2009


2009/11/6 Detlef Riekenberg <wine.dev at web.de>:
> Hints from KittyCat on IRC:
>  http://msdn.microsoft.com/en-us/library/ms889290.aspx  doesn't list
> D3DUSAGE_DYNAMIC as valid for *IDirect3DDevice::SetTexture
>
That page is for CreateTexture() on WinCE.

> might need to change the pool, too
> default pool can't be locked, unless it's also dynamic
> so if it uses dynamic usage to make it lockable, it will need to be in a
> different pool
>
If changing the usage makes it work, that's ok. Maybe try just passing
0 for usage. The texture doesn't have to be lockable, all we care
about is having a unique texture pointer for the
SetTexture()/GetTexture() calls.



More information about the wine-patches mailing list