d3dx9: Allow setting texture to NULL.

This commit is contained in:
Rico Schüller 2011-11-15 15:35:35 +01:00 committed by Alexandre Julliard
parent 5bd3c9161c
commit 7b902d2278
1 changed files with 1 additions and 1 deletions

View File

@ -2146,7 +2146,7 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_SetTexture(ID3DXBaseEffect *iface, D3D
TRACE("iface %p, parameter %p, texture %p\n", This, parameter, texture);
if (texture && param && !param->element_count &&
if (param && !param->element_count &&
(param->type == D3DXPT_TEXTURE || param->type == D3DXPT_TEXTURE1D
|| param->type == D3DXPT_TEXTURE2D || param->type == D3DXPT_TEXTURE3D
|| param->type == D3DXPT_TEXTURECUBE))