The Sting Demo calls the function IDirect3DDeviceImpl_7_SetMaterial (in ddraw/device.c) with Mat=NULL. <br>Then, this makes the function IWineD3DDeviceImpl_SetMaterial (in wined3d/device.c) crashes in the line&nbsp; This-&gt;updateStateBlock-&gt;material = *pMaterial;<br>
So, the patch checks is the material is not null before&nbsp; assignating it.<br><br>This fixes a crash in The Sting demo.<br><br>David Adam <br><br>