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:
parent
c9186d2ab5
commit
d545f94de0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue