Edit: Tangent thought: This is sort-of why many countries have a two house system, with one being population based.
That wouldn't fix anything, since population isn't an indicator of power. Were that to be implemented India and China would hold the most power, in which case this wouldn't have been a vote on whether or not killing gays was discrimination, it would have been a vote declaring that not killing them is.
That's why it was mostly a tangent thought. Democratic government on a global scale has serious problems due to the extreme fracturing of opinions. I'm not actually sure there are many laws you could set up on such a scale that would be upheld everywhere.
Honestly, the world would be much better if the US had pressed the advantage that nuclear weapons gave it to establish a global hegemony before any other nation could develop their own, and thus prevented the proliferation of nuclear weapons amongst opposing powers. China would have wound up more like Japan, a castrated, semi-westernized minor power, Russia and the rest of eastern europe would have wound up like the rest of europe, Africa and the middle east would have been... well, that's all an idle fantasy, because we didn't press the advantage, and who knows what bullshit would have resulted from a lack of conflict, but it would have neatly solved the problem of international power distribution, in that it would have placed all the power in the hands of liberal, western civilization (there's another nice thought: without the bogeyman of COMMINIZMZ, the US may very well returned to its roots of
not fucking the poor for shits and giggles, since the handling of reconstruction after WWII in Europe is one of the driving reasons they have more socialist attitudes).