The game is not playable because mouse events appear
became completely bogus. Mouse works correctly in
menus, but not in game when selecting units or if
having selected units, right clicking to give orders
Problem was reported upstream at
This may not be exactly a glew problem, but I found
these after some google'ing:
This describes the exact same problem I see:
interesting the comment that it works with proprietary
driver but not free driver. But reports the problem for
fedora 17, but I do not have this problem in my fedora
17 test computer (with intel video driver).
After some extra searching I also found this pastebin
with an interesting title "MegaGlest Unit Moving Error":
My current guess after a few rebuilds and reading the
code is that the fault is at:
//get the world coordinates
screenX, screenY, depth,
modelviewMatrix, projectionMatrix, viewport,
&worldX, &worldY, &worldZ);
I suspect it is returning bogus "world" coordinates there.
If insisting in playing, sometimes it will work, usually when
clicking in a region just a few pixels in the "fog of war",
and always work if clicking in another unit, that is, smart
casting it to move/follow another unit. Also, telling works
to build a construction appears to always work.
I found a workaround. Add:
search for EnableColorPicking in
to see the alternate/default code paths.
I just updated to latest rawhide, after update to new
X Server and rebuild of all drivers, etc.
The workaround is still necessary.
One possible helpful extra bit of information is that,
if not using the workaround it is "possible" to play
if one selects the units, does maximal zoom, and them
right click for the "smart action" (attack/move/gather).
1. select worker
2. zoom to have camera looking in the ground
3. move to some resource, usually gold
4. right click on the resource
Upstream tells that "selectbuf" is not longer supported
by OpenGL and was already known to be buggy in a few
drivers, just that now it does not work with drivers
that defer some fallbacks to mesa.
Megaglest will be updated to use the "colorpick" mode,
so, for now the only solution for drivers that do not
work is to add
until the next megaglest release, that will have the
above by default.