wined3d: Clear active lights when cleaning up a D3D stateblock.
commit3cd86c9f62cfb800164068a2cb8a77b65ef6d9bc
authorJoachim Priesner <joachim.priesner@web.de>
Thu, 8 May 2014 20:43:46 +0000 (8 22:43 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 9 May 2014 18:03:43 +0000 (9 20:03 +0200)
tree619fca691082ef012f0b909010649962543e3fee
parent22acc5cb304d946c7990fccf61ce4a0f77cb1a2c
wined3d: Clear active lights when cleaning up a D3D stateblock.

This prevents dangling pointers as the light structures that the pointers in
the state->lights array point to are freed below when cleaning the light maps.
dlls/wined3d/stateblock.c