Using VirtualBox, the assert (added by me) is triggered. All 64 visuals are "incomplete", but it still says eds_count=64.
Could somebody who is familiar with this clean that up? It seems very sloppy to ignore NULL values, and still consider eds_count to equal i. It appears to me that you'd get 64 NULLs which are happily passed along.
I could hack in a check to switch to the old function if everything is NULL, but that isn't very proper.
With the following config, it works:
[graphics] config_selection=old
You mean like this? (not really tested)
Cannot really tell from that patch, but does this mean it will automatically fall back to "old" if "new" fails? I don't even know what's going on in that file or what the difference is between the two, so pardon my lack of effort in trying to do any debugging.
It should do (fall back) although that wasn't what I was going for. Actually I wasn't sure what your bug report was about.
Running Ubuntu under a VM triggers the behavior of those NULL values and crash on every created display.
Using the config to skip that function "fixes" it. People complain about it from time to time (not sure under what environment), and usually Elias stops by to tell them to create an allegro5.cfg with the above settings.
Update:
The patch seems to work. I just applied it as-is, and the examples all run.
I always assumed that the crash was due to a bug in the newer GLX functions, otherwise why did Milan make it a configurable option? I will apply the patch.
Matt what was the host system when you ran the VM?
OS X 10.7.