Refactor the logic op into a func like the others.
Use a gstate enum, report unhandled blend mode.
Small warning fixes in Windows UI.
Use accessors for offsetx/y.
Use less pointer math in softgpu buffer access.
Don't allow boneMatrixNumber to go outside bounds.

Just from the GLES code.

Fixes the Monster Hunter 3rd demo crash, but not sure why it's trying to
use crazy numbers in the first place...
Remove a bunch of debug logs, sync with gles.

This may fix bad vertex/index addresses, or crashes from the matrix
arrays.  The debug logging is better replaced with "dump this frame".
Remove some unused gstate_c values.
Bypass vertex decoder z scaling.

Everything is compared against the u16 value.  This should be correct for
throughmode at least.
Merge pull request #3770 from unknownbrackets/softgpu

Crashes/cleanup in softgpu, fix a couple warnings, remove some unused gstate_c