d3d9: Emulate some logic ops with blending.

This makes Brave Story's intro visible.  Also add for GLES2/GLES3, but
doesn't seem to work on GLES2.
Merge pull request #6940 from unknownbrackets/blend-logicop

d3d9: Emulate some logic ops with blending