This checking was been added because the wireframe display will crash on mesa driver, wireframe feature should be tested in the future. This checking removing will make the wireframe working on WSL2.