1
0
Fork 0
forked from fte/fteqw

Small fix for usage with debug DirectX9 runtimes

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3828 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Lance 2011-06-19 12:50:49 +00:00
parent c9186d2ab5
commit d545f94de0

View file

@ -137,7 +137,7 @@ static void Upload_Texture_32(LPDIRECT3DTEXTURE9 tex, unsigned int *data, int wi
D3DSURFACE_DESC desc;
IDirect3DTexture9_GetLevelDesc(tex, 0, &desc);
IDirect3DTexture9_LockRect(tex, 0, &lock, NULL, D3DLOCK_NOSYSLOCK|D3DLOCK_DISCARD);
IDirect3DTexture9_LockRect(tex, 0, &lock, NULL, D3DLOCK_NOSYSLOCK);
if (width == desc.Width && height == desc.Height)
{