Commit 7b902d22 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3dx9: Allow setting texture to NULL.

parent 5bd3c916
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment