开发者

Simulate non-existing 3D Driver

开发者 https://www.devze.com 2023-03-31 10:42 出处:网络
I\'m currently developing a 3D-based Application (In C++, if that matters). To test special circumstances, I also need to test the behaviour when no 3D Interface coul开发者_如何学编程d be loaded (e.g,

I'm currently developing a 3D-based Application (In C++, if that matters). To test special circumstances, I also need to test the behaviour when no 3D Interface coul开发者_如何学编程d be loaded (e.g, glutInit() failed).

The environment is currently Linux, so a Linux-based solution would be preferable.

How would I test a case where no 3D Interface could be created, without unloading the binary 3D driver from my kernel (which is nVidia)?


Try running the application under something like a VNC server, or Xnest. Those don't generally support OpenGL.


Run it under a virtual machine using VMware or VirtualBox.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号