Zebediah Figura : d3d9: Handle stateblocks in d3d9_device_SetMaterial().