Have you tried the SFML examples?
Yes. The exact same code works under Windows but not under Ubuntu.
Are your drivers ok?
I was under the impression that I only had to install VirtualBox Guest Additions (more later*).
Have you tried to run other OpenGL apps (like glxgears)?
This is a good one. glxgears also gives me a black screen only (together with some terminal output; ~1000 FPS).
* After this I installed the ATI drivers: fglrx. Now I actually get segfaults when trying to execute glxgears, flgrxinfo, glxinfo (using gdb these trace back to fglrx, so I tried another fresh install, but no luck.).
I read conflicting stories about how OpenGL is / is not supported by VirtualBox. People report success when running a Windows guest in Linux host. My setup is the other way around (Windows host, Linux guest).
I have 3D acceleration enabled for the guest, together with 128MB graphical memory.
I guess the bottomline is, if anyone has a setup similar to mine and got it to work, could you please tell me what you did to achieve this?
Or if you know for a fact that it's not possible, please do tell
. In this case I will resort to installing Ubuntu alongside Windows.