DISCLAIMER: I see that some suggestions on the same issue have arisen, however, that (similar) mail has been moved to SuperUsers and seems to have been deleted. Nevertheless, I would like to post my question here, because I think that this software / programming is enough not to post messages on superusers (the line is sometimes vague between what is software and what is the hardware problem).
I am running a very simple OpenGL program in Code :: Blocks on VirtualBox with Ubuntu 11.10 installed on an SSD. Whenever I create and run a program, I get the following errors:
- OpenGL Warning: XGetVisualInfo returned 0 visual effects for 0x232dbe0
- OpenGL Warning: try again with 0x802, typing 0 visual images
- Segmentation error
From what I have compiled so far, it is related to VirtualBox. I need to install
- LIBGL_ALWAYS_INDIRECT = 1
In other words, enabling indirect rendering through X.org, rather than directly communicating with the hardware. This problem is probably not related to the fact that I have an ATI card, since I have a laptop with an ATI card that works flawlessly with the same program.
However, I dare not say that the fact that my GPU is ATI does not play any role whatsoever. I'm also not sure that the drivers are installed correctly (under "System Information β Graphics β Graphics Driver: Chromium.)
Any help on HOW to set LIBGL_ALWAYS_INDIRECT = 1 would be greatly appreciated. I just do not have enough information about where to put this command or where / how to execute it in the terminal.
Sources:
EDIT: in terminal type:
export LIBGL_ALWAYS_INDIRECT = 1
To verify that direct rendering is turned off:
glxinfo | grep direct
However, the problem persists. I still mention OpenGL warnings and a segmentation error.
source share