Fixed bug in Effect.cpp where the OpenGL function glGetActiveUniform is called with a wrong parameter, causing an assertion failure on some graphic cards.
Fixed memory leak.
checks if vsync is usable (to avoid problems with VM)
Merge pull request #1441 from olee/master

Fixed bug in Effect.cpp where glGetActiveUniform is called with a wrong parameter
updated coding style
tabs to spaces
Merge pull request #1445 from bosoni/master

checks if vsync is usable (to avoid problems with VM)
Merge remote-tracking branch 'upstream/master'