fixed gl and camera issues