wined3d: Pass NULL for the stateBlock parameter to shader_get_registers_used() in IWineD3DVertexShaderImpl_SetFunction.

This commit is contained in:
H. Verbeet 2007-06-07 23:52:43 +02:00 committed by Alexandre Julliard
parent a43f4e7a42
commit 7a9bb1db28
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ static HRESULT WINAPI IWineD3DVertexShaderImpl_SetFunction(IWineD3DVertexShader
/* Second pass: figure out registers used, semantics, etc.. */
memset(reg_maps, 0, sizeof(shader_reg_maps));
hr = shader_get_registers_used((IWineD3DBaseShader*) This, reg_maps,
This->semantics_in, This->semantics_out, pFunction, deviceImpl->stateBlock);
This->semantics_in, This->semantics_out, pFunction, NULL);
if (hr != WINED3D_OK) return hr;
This->baseShader.shader_mode = deviceImpl->vs_selected_mode;