If this fragment shader is the same as the standard geometry fragment shader, you could just use the original with the modified geometry shader