fix 3d mode switch on/off issue
Merge pull request #1562 from ZappoMan/bugfixes

fix 3d mode switch on/off issue