win32: only set sampler state for fragment
libretro: use port.h
Remove unnecessary counter