d3d9: Set IDirect3DDevice9Impl_GetVertexShader return value to NULL on error

Vincent Pelletier plr.vincent at gmail.com
Mon Dec 22 16:25:04 CST 2008


When IWineD3DDevice_GetVertexShader fails, set *ppShader to NULL.

This fixes "Black & White 2" here: it used to crash right when first level 
intro video ended, before seeing the level. With this patch I can play a bit 
(though there are some graphical glitches remaining, mouse it not so 
smooth...)

-- 
Vincent Pelletier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: set_return_value_to_NULL_on_error.diff
Type: text/x-diff
Size: 588 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081222/58e9e987/attachment.diff 


More information about the wine-patches mailing list