As outlined in “supported versions” of the asset description, screenshots only work on GMS2/DX11 due to this bug (which was deemed an Intel driver issue and never fixed).
I could add a workaround for that by saving into a file instead, but that would be much slower and not be suitable for anything other than one-off saving.