Henri Verbeet : wined3d: Set resource bindings to NULL before releasing them on stateblock destruction .