Fixed mipmap generation on Windows
Made PI a literal