[PATCH] wined3d: Apply stencil mask to stencil reference value.