After installing debian on VMware and installing all the libraries needed to run OpenGL applications using freeglut, I used glxgearsto make sure everything was working fine.
3426 frames in 5.0 seconds = 685.171 FPS
3562 frames in 5.0 seconds = 712.339 FPS
...
XI0: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 33172 requests (33170 known processed) with 0 events remaining.
glxgearsseems to be working fine. It displays the gears rotating in the window, despite the fact that the above error appears after clicking "Close" in the window of the glxgears window.
But when I try to run a simple OpenGL program using freeglut3, I get the following result:
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 36
Current serial number in output stream: 35
A program that works using all the same files and libraries on a non-virtual machine is not available to me at home.
How can I solve this problem? Is this a common problem with running OpenGL programs on virtual machines?